Commit graph

2505 commits

Author SHA1 Message Date
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
Fini Jastrow
bd5bf893f4 original: Fix spurious path in Livescript and R
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-16 00:49:04 +01:00
Finii
aab0a3e2bf [ci] Update FontPatcher.zip 2024-03-15 23:20:41 +00:00
Finii
911d6602ed [ci] Rebuild original-source font 2024-03-16 00:18:58 +01:00
Fini Jastrow
ab814101c0 original: Fix spurious path in Pug icon
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-16 00:18:58 +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
Fini Jastrow
2dc47f793d doc: Add missing Martian Mono to readme.md
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-15 10:16:58 +01:00
Fini Jastrow
aacf882566 doc: Clean up font table in readme.md
[why]
- The patched font name sometimes includes "Nerd Font" and sometimes not
- The OS tags are not maintained and nowadays should not matter
- The cell size is rather crammed in some cases

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-15 09:33:10 +01:00
Fini Jastrow
846412b073 docs: Add contributors
Manual for

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-14 09:34:56 +01:00
allcontributors[bot]
cc2f6ad8ed docs: update .all-contributorsrc 2024-03-14 09:24:54 +01:00
allcontributors[bot]
9c35c67aa5 docs: update CONTRIBUTORS.md 2024-03-14 09:24:54 +01:00
Finii
403fcff3f8 [ci] Rebuild original-source font 2024-03-14 07:56:52 +00:00
ronitkrshah
a4ccb3b6fe Add prettier icon 2024-03-14 08:53:41 +01:00
Finii
7ed76b0ea9 [ci] Rebuild original-source font 2024-03-14 07:42:55 +00:00
Fini Jastrow
925e732746 Adjust details of astro icon
- rename svg file to follow nameing rule
- remove color from svg
- use tabs in tsv (tab-separated-values) file :-D

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-14 08:39:05 +01:00
Rogin Farrer
d7654ffd67 update tsv 2024-03-14 08:39:05 +01:00
Rogin Farrer
cb3580cab9 Add Astro icon 2024-03-14 08:39:05 +01:00
Fini Jastrow
b90575bb82 doc: Update 0xProto version in readme.md
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-14 08:19:07 +01:00
junos
3885ddc387 Update 0xProto to v1.602 2024-03-14 08:19:07 +01:00
Finii
798b890ad2 [ci] Update FontPatcher.zip 2024-03-14 07:04:47 +00:00
Fini Jastrow
136a84bc03 font-patcher: Fix Octicon scaling groups
[why]
The Octicon scaling group has two errors, one is a typo (the first digit
of a number is missing), and the second is off by one for some reason.

Reported-by: @aaronbell
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-14 08:01:20 +01:00
Fini Jastrow
5513772f6d doc: Update license audit
[why]
Some new(er) fonts are still missing.

[how]
Just add their entries into the table.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-14 07:58:35 +01:00
Saygo
2ea4a873bc Update license-audit.md
Added the license for CommitMono, as stated in the LICENSE txt file from the zip file downloaded from the nerd font website.
2024-03-14 07:58:35 +01:00
allcontributors[bot]
9b0bc9d413 docs: update .all-contributorsrc 2024-03-12 14:54:56 +01:00
allcontributors[bot]
47d81848ec docs: update CONTRIBUTORS.md 2024-03-12 14:54:56 +01:00
glow
0e30d93467 docs: Fix broken link in HeavyData README.md
The link is dead, probably due to a misconfiguration of the web server. Without `www` it works though.
2024-03-12 14:54:00 +01: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
allcontributors[bot]
e4a83b8ae4 docs: update .all-contributorsrc 2024-03-05 19:17:33 +01:00
allcontributors[bot]
300ea00a3f docs: update CONTRIBUTORS.md 2024-03-05 19:17:33 +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
Fini Jastrow
017927416b generate-font-image-previews: Fix wrong previews
[why]
0xProto (and possibly others) use a default font for the previews.

[how]
We need to put the font family names in quotes...

Reported-by: Lucy Phipps <landfillbaby69@gmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-03-05 19:14:12 +01:00