1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00
Commit Graph

2487 Commits

Author SHA1 Message Date
Fini Jastrow
5d463f0940 tests: Add new glyphs to vertical lines test
and improve the script code in general

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-29 14:43:37 +01:00
Fini Jastrow
7543e4a3a8 Add inverse powerline arrow heads
Fixes: #1451

See also (merged but not released):
eb6b9721a8

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-29 14:10:31 +01:00
Finii
6fe3ddca1c [ci] Update FontPatcher.zip 2024-03-29 12:47:10 +00:00
Fini
d311593fa1
Merge pull request #1564 from ryanoasis/feature/prevent-beanpole-icons
font-patcher: Prevent excessively tall icons in mono fonts
2024-03-29 13:43:54 +01:00
Fini Jastrow
758307300b tests: Fix shellcheck issue
SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".

Which is hard(er) because the sequences are not interpreted unless they
are in the format string.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-29 13:35:57 +01:00
Fini Jastrow
5a958b3e96 font-patcher: Prevent excessively tall icons in mono fonts
[why]
Very slender and tall icons will be scaled huge compared to their fatter
neighbors. This happens for example to the chess pieces (E25F ff) or
text style icons like italic (EB0D).

[how]
When a monospaced font is created use a slightly less tall cell height
for all icons (except icons that have to match the actual line height).

This can be prevented by the new scale control character `^` that
symbolizes maximized vertical size (height) within the real cell.

The smaller cell (now called icon cell) is less tall than the line
height, but higher than the cap height of the font; to prevent people
complaining that the icons shrunk too much.
It is about 1/3 higher than the cap height compared to the line height.

This is NOT applied to the other Nerd Fonts fonts variants (i.e. Regular
and Propo) because all icons are generally a bit bigger than the cap
height (no scaling down to fit into one advance width) and as the
scaling is far less pronounced the slender-and-tall icons scale
comparably and do not look out off place there.

Suggested-by: Aaron Bell @aaronbell
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-29 13:28:05 +01:00
allcontributors[bot]
0605df5a7a
docs: add luebking as a contributor for bug and review (#1566)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-03-29 13:22:37 +01:00
Finii
033daa1f70 [ci] Update FontPatcher.zip 2024-03-29 12:19:23 +00:00
Fini
a55893d107
Merge pull request #1551 from ryanoasis/feature/Powerline-rounded-overlap
Increase Powerline rounded overlap
2024-03-29 13:17:29 +01:00
Fini Jastrow
315408dc3d Add another test for Powerline glyphs
A more conceise version of the Powerline test, designed to show
the dreaded 'faint vertical lines' phenomenon from LCD antialiasing

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-29 13:16:02 +01:00
Fini Jastrow
12abbc05a1 Remove tests.sh
This is not used for anything.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-29 13:12:14 +01:00
allcontributors[bot]
3e4620ee21 docs: update .all-contributorsrc 2024-03-27 08:43:37 +01:00
allcontributors[bot]
41da2e06a3 docs: update CONTRIBUTORS.md 2024-03-27 08:43:37 +01:00
Fini Jastrow
b4b51f4868 casks: Fix tap command and repo links
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-27 08:41:45 +01:00
Christopher Bellanger
30ecf9c330 Update readme_fr.md
Fix error: Error: caskroom/fonts was moved. Tap homebrew/cask-fonts instead.
2024-03-27 08:41:45 +01:00
allcontributors[bot]
931f25a335 docs: update .all-contributorsrc 2024-03-25 22:57:44 +01:00
allcontributors[bot]
0649a9bef5 docs: update CONTRIBUTORS.md 2024-03-25 22:57:44 +01:00
Guillaume BOEHM
e8a72155a7 cheat-sheet: Add autofocus on load to search input text 2024-03-25 22:56:39 +01:00
allcontributors[bot]
8d72c0e151 docs: update .all-contributorsrc 2024-03-22 23:08:27 +01:00
allcontributors[bot]
0e38c0e4b0 docs: update CONTRIBUTORS.md 2024-03-22 23:08:27 +01:00
Fini Jastrow
6e2b68b15b doc: Add readme for PowerlineSymbols
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-20 16:56:11 +01:00
Fini Jastrow
5e2858670e Increase Powerline overlap (only rounded)
[why]
We still fight with the faint lines on the big side of the powerline
glyphs. They come from the LCD antialiasing mode that has problems with
the borders.

Other fonts use far more overlap. We use only a modest amount of overlap
(1% of the width).

[how]
As the other fonts do, increase the overlap (to 6% now).

Add full-hight 'landing platforms' on the outsides of the glyphs,
which are 7% wide.

Related: a8b9e1da06
Related: #1245

Fixes: #1547

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-20 16:39:03 +01:00
Fini Jastrow
cd9f49041f Move PowerlineExtra into subdirectory
And add meta information.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-20 16:38:44 +01:00
Finii
81e7be81f8 [ci] Update FontPatcher.zip 2024-03-18 23:47:58 +00:00
Fini Jastrow
1ef53db41f Devicons: Fix Materializecss glyph
[why]
The glyph is extremely complex with very thin open spaces and bridges.
Obviously a conversion from some colored icon that has not been looked
at too hard.

[how]
Remove all the small crevices, smoothen the surface carefully and make
too thin strokes a bit wider.

We still keep the Devicons goal "very crisp icons" so that no rounding
of the paths and reduction of points is used.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-19 00:45:01 +01:00
Fini Jastrow
50eae52aea Devicons: Add proper attribution
[why]
The font file is not changed, it is still the 9 year old file.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-19 00:45:01 +01:00
Fini Jastrow
59224d6456 fontfilenames: Fix file name
SIGH

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-18 20:01:02 +01:00
Fini Jastrow
8047f40372 Add tool to find problematic glyphs
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-18 19:59:31 +01:00
Fini Jastrow
94d6c0ffcf ComicShannsMono: Update version information
[why]
Forgotten after update.

[note]
Also remove old old configure file that has been used for fast test
runs. It has the wrong format now anyhow.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-18 17:19:49 +01:00
Fini Jastrow
32010a5495 ComicShanns: Fix carons
[why]
The carons are all upside down.
The dcaron and tcaron should use an 'apothrophe'.

[how]
The simplify the fixing of all carons we take the excellent fork ofu
Rodrigo Batista de Moraes that (re?)creates the letters with caron from
references.

Just manually flip the caron and all combined glyphs will be fixed.

Create a combining-comma-above-right from the ordinary comma.

Reference that for dcaron and tcaron.

Rerun `make-bold` which creates the two otf files.

Fixes: #1492

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-18 15:29:09 +01:00
Fini Jastrow
5fea300f7c doc: Correct ComicShannsMono source
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-18 13:08:11 +01:00
Finii
7bc37ad158 [ci] Update FontPatcher.zip 2024-03-17 19:39:22 +00:00
Fini Jastrow
f9e1116859 name-parser: Simplify code
[why]
The code is rather convoluted and one can not follow what is done.

[how]
Add function that abstracts some steps away.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-17 20:36:52 +01:00
Fini Jastrow
a0b080abaf name_parser: Fill short and long name as TypoFamily
[why]
This sets out to circumvent a problem with VisualStudio 2022. That
application seems to have problems with fonts when the ID16 is not a
prefix in ID1.

We have this when --makegroups >= 4, because

ID1  has the short name suffix 'NF'
ID16 has the long suffix 'Nerd Font'

These fonts can be selected in VisualStudio 2022, and the preview works
ok, but once active some replacement default font is used instead.

The problem vanishes if ID16 and ID1 have the same stem, or rather ID1
has someting added on top of ID16; but ID16 is a substring of ID1.

See more discussions in #1442

[how]
Write both forms in ID16 fields, 'NF' and 'Nerd Font' suffixes. This
works as long as the application considers all languages equal.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-17 20:36:52 +01:00
Fini Jastrow
a5abd847e5 name_parser: Do remove non-US SFNT entries
[why]
Albeight documented in the comment not all non English-US entries are
removed but just al TO_DEL ones.

[how]
Put the conditional in the right position.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-17 20:36:52 +01:00
Fini Jastrow
926d741137 query_name: Examine all languages
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-17 20:36:52 +01:00
Finii
9af91e7124 [ci] Update FontPatcher.zip 2024-03-17 14:34:24 +00:00
Fini
59133b8d31
Merge pull request #1544 from ryanoasis/feature/update-codicons
Update codicons to 0.0.35
2024-03-17 15:31:21 +01:00
Fini Jastrow
da502d23a2 i_all: Warn and fail on glyphname duplicates
[why]
We need the glyphnames to be unique, or some glyphs will not be
accessible later (in the cheat sheet, css, glyphnames).

[note]
Also already remove one non-effective duplicate that is first an alias
and later a real glyph in i_seti.sh

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-17 15:23:34 +01:00
Fini Jastrow
2fa45981ee generate-glyph-info: Fix double entries
[why]
Two glyphs may not have the same name (normally).
Our glyphnames.json will break.

[how]
Do not add two entries with the same name but rather report the
codepoints in the bottom.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-17 14:24:43 +01:00
Fini Jastrow
6932ff2d8f Codicons: Update i_cod.sh
With tool, call:

fontforge generate-glyph-info-from-set.py --font ../../src/glyphs/codicons/codicon.ttf --start ea60 --end ec1e --offset 0 --prefix cod > i_cod.sh_part

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-17 13:47:24 +01:00
Fini Jastrow
f3596b3ac0 Codicons: Fix defective glyphs
See PR #1544

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-16 10:57:28 +01:00
Fini Jastrow
d907552970 font-patcher: Include new codicons and scale group icons
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-16 10:26:40 +01:00
Fini Jastrow
9ad9c32fce Update codicons
to 0.0.35

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-16 09:00:31 +01:00
Fini Jastrow
d85756f7b7 doc: Improve contributing guideline
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-16 02:19:29 +01:00
Finii
813fde48c3 [ci] Update FontPatcher.zip 2024-03-16 01:08:27 +00:00
Fini Jastrow
d45ff3da75 font-patcher: Increase version
[why]
Forgot to increase with commit 136a84bc03.

Now we also have different original icons, lets have a new number.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-16 02:04:45 +01:00
Fini Jastrow
e17bb46910 gotta-patch-em: Require Bash version 4+
[why]
Native MacOS has only an ancient Bash 3.x
But we use arrays... and rewriting only to support 15 year old shells?

[how]
Check the Major Bash version number and bail out if too old.

Fixes: #1505

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-16 01:33:55 +01:00
Finii
2474739437 [ci] Update FontPatcher.zip 2024-03-15 23:54:14 +00:00
Finii
da3a9d4580 [ci] Rebuild original-source font 2024-03-16 00:49:04 +01:00