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

2502 Commits

Author SHA1 Message Date
allcontributors[bot]
67a8182883 docs: update CONTRIBUTORS.md 2024-02-29 16:53:17 +01:00
Fini Jastrow
47ff3eca3e generate-css: Update cheat sheet colors
[why]
The colors have been changed to increase the contrast.
See also commit
  c840fd5e  Improve text contrast

Fixes: #1524

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-29 16:41:04 +01:00
Fini Jastrow
767f6444d8 CI: Fixup: Typo in release workflow
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-29 11:39:00 +01:00
Fini Jastrow
48156a785f CI: Update all actions
[why]
Because we want to use Node 20 etc pp

[how]
Check for breaking changes and update.

Also replace checkout-files by checkout with sparse-checkout; as they
semselves encourage people to do.

action-gh-release has been updated to Node 20 but has not been released
with the change, so we access the latest version directly by hash.

[note]
Of course this is unchecked... what can ge wrong! 😬

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-29 11:36:41 +01:00
allcontributors[bot]
cf3561b1a5 docs: update .all-contributorsrc 2024-02-19 14:25:40 +01:00
allcontributors[bot]
a9533d8400 docs: update CONTRIBUTORS.md 2024-02-19 14:25:40 +01:00
Fini Jastrow
e6dd74531d doc: Reorder options to get the fonts
[why]
The ordering is not by most preferable/simple.
Also drop the direct download as possibility (because newer fonts will
not have it anyhow).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-12 14:37:14 +01:00
Fini Jastrow
dadfedb11f doc: Add blobless checkout manual
[why]
A depth-less checkout is usually useless if you want to do some code
development; but on the other hand you usually never ever need the old
blobs (i.e. font files).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-12 14:08:14 +01:00
Fini Jastrow
96497b4fef docker: Run parallel by default
[why]
When nothing is specified there is only one patcher running instead of
number-of-threads patchers. But we want the speedup as default.

[how]
Use `-j0`, although it has a small bug. We could also use `-j100%` but
then the output might confuse people even more?

Reported-by: nobk <nobk@noreply.github.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-05 18:17:20 +01:00
Fini Jastrow
7ebbc4e173 docker: Include logfile in output
[why]
Some valuable information might be in the logfile, that gets created
only on demand.

[how]
Copy it over to the output if existing.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-05 16:35:19 +01:00
Fini Jastrow
1fccd8a63e docker: Allow blancs in filenames
[why]
The script does not allow blanks in the font filenames.
There are also some shell warnings when run.

[how]
Simplify and always use `parallel` to run the job, even when the user
selects just one job. The problem is deciding if the passed PN is the
number one or not. We do not want to fail, but the numeric comparison
operator fails on non numbers (sometimes).

Use null termination as usual to pass filenames with blanks from a find
into something else.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-05 16:24:08 +01:00
allcontributors[bot]
c07e985406 docs: update .all-contributorsrc 2024-02-05 14:32:17 +01:00
allcontributors[bot]
e577da0483 docs: update CONTRIBUTORS.md 2024-02-05 14:32:17 +01:00
Fini
e633e5f2cc
Merge pull request #1508 from nobk/pdckr
Parallel execution fontforge in docker
2024-02-05 14:31:34 +01:00
nobk
51b7fc646b Update Docker usage in readme.md 2024-02-05 05:57:43 +08:00
nobk
abc7f3470a Docker add option -e PN=1 disable parallel fontforge 2024-02-05 05:33:13 +08:00
nobk
45e1ad998a Case insensitive fonts find 2024-02-05 04:15:15 +08:00
nobk
86b38e473f Parallel execution fontforge in docker 2024-02-05 00:54:58 +08:00
allcontributors[bot]
633d36114f docs: update .all-contributorsrc 2024-02-01 06:57:42 +01:00
allcontributors[bot]
7dbc2b5759 docs: update CONTRIBUTORS.md 2024-02-01 06:57:42 +01:00
Zshoham
9987e5f85c fix: added missing glyphs in test-fonts.sh 2024-02-01 06:55:44 +01:00
Finii
23c0cbfaf8 [ci] Update FontPatcher.zip 2024-01-15 17:34:02 +00:00
Fini Jastrow
393c66684b font-patcher: Fix debug format string
[why]
The format string is invalid and results in a runtime error if that
particular warning is issued (which is only the case for Terminus).

[how]
A verbatim percent sign must be encoded as '%%'.

[note]
This has already been fixed before with commit
  f81564fad  font-patcher: Fix typo in logger output

but the change has been lost by rebasing :-(

See also #1350

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-15 18:31:06 +01:00
Fini Jastrow
148c288d30 fonts.json: Add pathname of reference font file for each font
[why]
For testing we might want to execute one command (e.g. font-patcher run)
once for each source font. We need to decide which of the font files is
a good choice.

[how]
Best would maybe to use the font that is used for the image previews.

We add that information for each font into the 'database'. Then we can
for example do stuff like:

while IFS= read -d $'\n' -r f; do
  ls -l ../../src/unpatched-fonts/"${f}"
done < <(jq -r '.fonts | .[] | ."imagePreviewFontSource"' lib/fonts.json)

This is already utilized for the helper tools that are hid in the
generate-font-image-previews.sh script.

Note that DaddyTimeMono and NerdFontSymbolsOnly has "--ext ttf" set in the
config, so the information provided for that fonts is wrong.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-15 18:31:06 +01:00
Fini Jastrow
da4fb70b7e font-patcher: Break alternative unicode links before patching
[why]
The D2Coding font has a lot of glyphs shared between multiple unicode
codepoints.
Usually we just want to change the glyph on one particular codepoint
and not on all linked ones; which will affect codepoints not in our
patching ranges.

For example the glyph FULL BLOCK is used by codepoint 2588 and E286. In
the Exxx range they have a lot of icons, and also a full block.

[how]
Remove all links on glyphs that we are about to patch over, so that we
really just patch the codepoint we want to patch (and have no hidden
'links').

[note]
This could in principle break alts or ligs if they rely on another
codepoint that we removed. But breaking ligs is always a possibility
when patching over existing glyphs.

[note]
I checked several (not all) fonts in our repertoire, and only D2coding
is massively affected.

The only other fonts are these with 2 codepoints each:
heavy_data.ttf Removing alternate unicode on F001 (FB01)
heavy_data.ttf Removing alternate unicode on F002 (FB02)
Tinos-Regular.ttf Removing alternate unicode on F001 (FB01)
Tinos-Regular.ttf Removing alternate unicode on F002 (FB02)

Fixes: 1454

Reported-by: @hdd1013
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-15 18:31:06 +01:00
allcontributors[bot]
f25aa13bba docs: update .all-contributorsrc 2024-01-10 16:44:18 +01:00
allcontributors[bot]
8d3c4c282f docs: update CONTRIBUTORS.md 2024-01-10 16:44:18 +01:00
mdsanima
c4f613aab2 docs: Added instruction how to use development container 2024-01-10 16:43:56 +01:00
mdsanima
e8572a9f41 fix: Latest configuration for devcontainer.json and Dockerfile 2024-01-10 16:43:56 +01:00
Fini
4659351526
Merge pull request #1444 from ryanoasis/feature/sourcecode-2042
SourceCodePro: Update to 2.042/1.062
2024-01-10 14:48:59 +01:00
Fini Jastrow
0b4b66abbd SourceCodePro: Prepare for restructuring release
[why]
The subdirs will not be cleared/removed automatically, so we restructure
already now.

[how]
Move all files into the font-root dir.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-10 14:42:03 +01:00
Finii
4c0eee1d22 [ci] Update FontPatcher.zip 2024-01-10 13:18:59 +00:00
Fini
3968deed75
Merge pull request #1478 from ryanoasis/feature/update-noto-fonts
Update Noto fonts
2024-01-10 14:16:16 +01:00
Fini Jastrow
37d6f2b876 doc: Fix typo
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-10 13:04:11 +01:00
Fini Jastrow
b8065482ec Noto: Update license
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-10 11:51:37 +01:00
Fini Jastrow
67b48f5eb6 NotoSerif: Update to 2.013
We keep all ligatures with the Serif font, i.e. `ldot` and `fi` et al.
This font is very proportional anyhow.

As there are no ligs active in the old Noto Mono font and the other have
their own configs we can just remove the root config.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-10 11:05:33 +01:00
Fini Jastrow
e6dbf6072b NotoSansMono: Update to 2.014
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-10 11:05:33 +01:00
Fini Jastrow
b1ee76341a NotoSans: Update to 2.013
All the different ligature removal calls are becoming more and more a
problem, because we have only one config.json for all fonts in a
font-root-directory. But the Noto variants have the ligatures in
different lookups. With the new font we finally remove lookups in the
new font that have a completely different contents then the lookups we
wanted to remove in the other family.

So the config.json is becoming more flexible: Now first we seach in the
concrete font file directory and only if there is no config we progress
to the font root directory and search there.

See also commit
d9f7dbe23  Prepatched fonts: Revive some ligature removal

Here we have
* fi and similar in lookup 41
* l-dot and similar in lookups 13, 14, 15

Fixes: #1472

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-10 11:05:01 +01:00
Fini Jastrow
cf49618ac2 doc: Fix Monaspace link in readme
The previous commit added the wrong reference in the commit message,
this empty commit just fixes it.

[why]
The link to the patched Monaspace is broken.

[note]
Reference #1468

Reported-by: Rubin Bhandari <roobin.bhandari@gmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-01 14:59:55 +01:00
Fini Jastrow
208977b859 doc: Fix Monaspace link in readme
[why]
The link to the patched Monaspace is broken.

[note]
Reference #1486

Reported-by: Rubin Bhandari <roobin.bhandari@gmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-01 14:54:27 +01:00
Fini Jastrow
1a3b100231 docker: Remove manual configparser install
[why]
Installing via pip is not a good solution as this might conflict with
system-installed python packages.

[how]
It's installed already anyhow...
This must be a leftover from ancient times.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-12-18 17:21:30 +01:00
Finii
0cfd54ccde [ci] Update FontPatcher.zip 2023-12-18 14:33:29 +00:00
Fini Jastrow
19c4162241 font-patcher: Fix crash if no roman characters
[why]
When we can not detect the cell width, for example because there are no
glyphs in the range of extrended-roman that we examine, the width will
be zero and that will result in a crash later on (on rescaling).

[how]
Just abort if height or width are zero or negative.

Related: #1460

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-12-18 15:30:24 +01:00
allcontributors[bot]
ee6d42f27f docs: update .all-contributorsrc 2023-12-18 15:14:15 +01:00
allcontributors[bot]
7c75be041e docs: update CONTRIBUTORS.md 2023-12-18 15:14:15 +01:00
Fini Jastrow
0f8a2aa873 SourceCodePro: Update to 2.042/1.062
[how]
Flatten directory structure.
Do not forget to check if that works correctly on release.

Fixes: #1437

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-28 09:56:57 +01:00
Fini Jastrow
8423b72241 query_name: Show more names
Also change code to be somehow more elegant?

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-27 09:05:33 +01:00
allcontributors[bot]
264d672179 docs: update .all-contributorsrc 2023-11-26 21:16:07 +01:00
allcontributors[bot]
c17199e12b docs: update CONTRIBUTORS.md 2023-11-26 21:16:07 +01:00
Fini Jastrow
00d02f84b8 query_name: Add compatible fullname
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-26 20:12:09 +01:00