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

560 Commits

Author SHA1 Message Date
Fini Jastrow
e1f7f4b59c name-parser: Prevent wrong modifier detection
[why]
Modifier on their own are not allowed (except "Demi").
The previous commit where we changed the CodeClimate fix from
' ' to '' allowed any modifier to be a stand alone detected word.

This resulted in this font name:
  RecMonoCasual Nerd Font Propo Semi

[how]
Remove the cumbesome CodeClimate kludge completely, it just makes the
code more complex without any real benefit. Codeclimate just complains
because our tables look so "similar" :rolleyes: That's data dude!

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-03 16:18:46 +02:00
Fini Jastrow
9bf159f414 name-parser: Fix Terminus-Bold-Italic parsing
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-03 16:18:46 +02:00
Fini Jastrow
c1161d4762 query_names: Only consider basic language
[why]
We have now fonts where names for multiple languages are set
(differently) but we need to compare only the base language which is
English US.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-03 16:18:46 +02:00
Fini Jastrow
be3ee4854f name-parser: Add "thick" weight for Lilex
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-03 16:18:46 +02:00
Fini Jastrow
be48f93710 name-parser: Fix style names two-language-mode
[why]
The code needlessly create two language ID17 even if ID16 is only one
entry / one languange. ID17 is always the same for both languages.

This is an example for the wrong way:

======== BlexMonoNerdFont-Text.ttf ========
SFNT Fullname      ID 4     BlexMono Nerd Font Text
SFNT Family        ID 1     BlexMono Nerd Font Text
SFNT SubFamily     ID 2     Regular
SFNT Pref Family   ID 16    BlexMono Nerd Font
SFNT Pref Styles   ID 17    ('Text', 'Text')
SFNT PS Name       ID 6     BlexMonoNF-Text
SFNT Compatible    ID 18    -
SFNT CID findfont  ID 20    -
SFNT WWS Family    ID 21    -
SFNT WWS SubFamily ID 22    -
PS fontname                 BlexMonoNF-Text
PS fullname                 BlexMono Nerd Font Text
PS familyname               BlexMono Nerd Font Text
fondname                    None

This is an example for the correct way (two ID17 when we have two ID16):

======== NotoSerifCondensedNerdFont-BlackItalic.ttf ========
SFNT Fullname      ID 4     NotoSerif Condensed NF Black Italic
SFNT Family        ID 1     NotoSerif Cond NF Black
SFNT SubFamily     ID 2     Italic
SFNT Pref Family   ID 16    ('NotoSerif Condensed Nerd Font', 'NotoSerif Cond NF')
SFNT Pref Styles   ID 17    ('Black Italic', 'Black Italic')
SFNT PS Name       ID 6     NotoSerifCondensedNF-BlackItalic
SFNT Compatible    ID 18    -
SFNT CID findfont  ID 20    -
SFNT WWS Family    ID 21    -
SFNT WWS SubFamily ID 22    -
PS fontname                 NotoSerifCondensedNF-BlackItalic
PS fullname                 NotoSerif Condensed NF Black Italic
PS familyname               NotoSerif Cond NF Black
fondname                    None

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-03 16:18:46 +02:00
Fini Jastrow
92c5b0f3e0 Update Font Logos to 1.2.0
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-02 20:38:36 +02:00
Fini Jastrow
f089ee8a6e Font Awesome: Update to 6.5.1
This does not pull in all icons of 6.5.1, but only of
'Region A' and 'Region B', see script `remix` and
PR #1563.

It keeps the codepoints constant for existing icons.

Fixes: #1550

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-02 18:24:46 +02:00
Fini Jastrow
09c6c8988c Add Ubuntu Sans
Prevent the "SansMono" becomes "SansM" rule for UbuntuSansMono.

Fixes: #1435

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-02 18:21:29 +02:00
Fini Jastrow
3d7aa9298c name-parser: Sort Widths before Weights
[why]
Usually we want the width before the weight:

ZedMono Nerd Font Extended ExtraBold Italic

but we get:

ZedMono Nerd Font ExtraBold Extended Italic

The reason is that we do not sort widths and weights and handle them as
one list, keeping the original order.

All fonts but Zed have the width before the weight and it never turned
up

[how]
Handle widths and weights on their own and only afterwards concattenate
width (first) to weights (second).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-02 15:59:21 +02:00
Fini Jastrow
f2862d4475 Fix CodeClimate Fix
[why]
When we add a dummy we need to remove that later on.

Originally that has been introduces to avoid a wrong code duplication
warning.

See how the blank leaks into the name:

ERROR: ====-< Family (ID 1)      too long (38 > 31): ZedMono Nerd Font Extended ExtraBold
DEBUG: =====> SubFamily (ID 2)   ok       ( 6 <=31): Italic
DEBUG: =====> Fullname (ID 4)    ok       (45 <=63): ZedMono Nerd Font Extended ExtraBold   Italic
DEBUG: =====> PSN (ID 6)         ok       (33 <=63): ZedMonoNF-ExtendedExtraBoldItalic
DEBUG: =====> PrefFamily (ID 16) ok       (17 <=31): ZedMono Nerd Font
DEBUG: =====> PrefStyles (ID 17) ok       (27 <=31): Extended ExtraBold   Italic
DEBUG: =====> PrefStyles (ID 17) ok       (27 <=31): Extended ExtraBold   Italic
DEBUG: =====> Filename 'ZedMonoNerdFont-ExtendedExtraBoldItalic.ttf'

(Note trailing blanks even in ID 1.)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-02 15:51:52 +02:00
cabrinha
cb6c1c6c64 Add font Zed Mono
This squashes also these commits:

* ds-store
* ZedMono: Clean up files
  Remove files that should not be in the PR, because they are autocreated
  or belong somewhere else.
* Also divide Extended and non-Extended versions.
* ZedMono: Fix metadata
* ZedMono: Fix some metadata
* ZedMono: Drop some more exotic weights and restructure dirs

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:32:26 +01:00
Fini Jastrow
4af1693cb6 Add Recursive Mono
'for Code' variants.

Rename RecMonoSemicausal to RecMonoSemi to avoid too long font names
after we add 'Nerd Font Mono' )or even (NFM) to it.

Fixes: #845

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:26:34 +01:00
Youri Wijnands
584c397e5c Update all Iosevka variants to version 29.0.4
Sqashed these commits:

* Remove Thin, Extra-Light, Semi-Bold and Heavy variants of IosevkaTermSlab
* Remove Thin, Extra-Light, Semi-Bold and Heavy files after unpacking
* No more subfolders per weight
* Revert commiting patched fonts
* Rewrite update scripts
* Update readme.md
2024-03-31 00:22:36 +01:00
Fini Jastrow
9136231ad2 Update Victor Mono to 1.5.6
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:20:43 +01:00
Fini Jastrow
d1c7397a30 Update Lilex to 2.400
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:20:43 +01:00
Fini Jastrow
298f3a13e7 Update InconsolataLGC to 1.5.2
Also remove patched-fonts/InconsolataLGC/ subdirectories.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:20:43 +01:00
Fini Jastrow
f31143c553 Update Geist Mono to 1.200
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:20:43 +01:00
Fini Jastrow
4a17ad2134 Update Commit Mono to 1.143
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:20:43 +01:00
Fini Jastrow
4b1db681db Update IBM Plex Mono to 2.004 (v6.4.0)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:20:43 +01:00
Fini Jastrow
39a3a2a753 Update 0xProto to version 1.603
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-31 00:20:43 +01:00
Finii
47986a4368 [ci] Rebuild original-source font 2024-03-31 00:11:13 +01:00
Fini
f81f17af0d
Merge pull request #1558 from landfillbaby/master
update Intel One Mono to 1.3.0
2024-03-30 13:28:01 +01:00
Fini Jastrow
23a14f1847 Update Terminus to 4.49.3
[why]
The outlines in Terminus 4.49.2 are rather weird. Autoconverted but not
too nice.

[how]
Update to 4.49.3 as tis has much better outlines.

Fixes: #1329

Suggested-by: Wiesław Herr @herself
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-30 10:09:40 +01:00
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
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
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
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
Fini Jastrow
c2861581f2 IntelOneMono: Simplify unpatched directory
[why]
For new fonts we do not create one subdirectory for each font file anymore.
The (historic) reason were the many variants that each font file had been
patched with. Nowadays we just have 3 variants for each font file.

And anyhow this font is release archive released only.

[how]
Simplify update script and move font files.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-25 23:38:41 +01:00
Guillaume BOEHM
e8a72155a7 cheat-sheet: Add autofocus on load to search input text 2024-03-25 22:56:39 +01:00
Lucy Phipps
0c2a028715
update Intel One Mono to 1.3.0 2024-03-25 15:35:08 +00: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
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
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
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
Fini Jastrow
46f3d1fa44 doc: Correct some upstream-version info
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-15 12:27:04 +01:00
Fini Jastrow
7d71076980 Distribute source version information
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-15 10:16:58 +01:00
Finii
403fcff3f8 [ci] Rebuild original-source font 2024-03-14 07:56:52 +00:00
Finii
7ed76b0ea9 [ci] Rebuild original-source font 2024-03-14 07:42:55 +00:00
Fini Jastrow
ed36a89652 fonts.json: Add preview link to Geist font
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-05 21:54:01 +01:00
Fini Jastrow
6cca677565 font.json: Fix preview somne fonts
[why]
For some reason some are not correct. Possibly my own lazyness.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-05 19:14:12 +01:00
Fini Jastrow
5945c4c079 generate-font-image-previews: Clean up svg (remove warnings)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-05 19:14:12 +01:00