1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-10-30 23:43:47 +02:00

2923 Commits

Author SHA1 Message Date
allcontributors[bot]
6e31f3668f docs: add ZhiZe-ZG as a contributor for bug (#1940)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-10-20 07:41:12 +02:00
allcontributors[bot]
21f0a4d5f3 docs: add injust as a contributor for doc (#1927)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-09-11 09:47:51 +02:00
Justin Su
690646eddc Fix link in README 2025-09-11 09:46:28 +02:00
Fini Jastrow
d46b97acf7 Put icon copyright into every font-readme [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-08-03 15:23:54 +02:00
Finii
0def781849 [ci] Update FontPatcher.zip 2025-08-03 11:57:11 +00:00
Fini Jastrow
6c7910e538 font-patcher: Link to icon sources in patched fonts
[why]
Some icon sets require mentioning of the original author, and we do this
on the website. But there is no indication that we have that list.

[how]
Remove the comment about the changelog (usually you look at the
changelog at the repo before you install a new font) and substitute it
for a link to the icon repo list.

Related: #1908

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-08-03 13:54:29 +02:00
Finii
abc3c03a77 [ci] Update FontPatcher.zip 2025-08-03 10:28:21 +00:00
Fini Jastrow
36ae3260a1 Add details to icon sources
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-08-03 12:22:36 +02:00
Fini Jastrow
ebc376cbd4 DejaVuSansMono: Fix monospaced (and remove subdirs)
[why]
The original / upstream version of DejaVuSansMono does not have the
trigrams at codepoint U+2630 - U+2637. These have been added manually
(together with some Powerline glyphs) with commit

    bc1f35949 Updates DejaVu fonts from version 2.33 to 2.37 & adds trigrams (2630 through 2627) (fixes #100)

Unfortunately the newly added glyphs were just copied over from
DejaVuSansCondensed and the width does not match the monospaced width of
DejaVuSansMono: the resulting font is not monospaced anymore (but it
should be, by its name part Mono).

[how]
Take the glyphs again from DejaVuSansCondensed but instead of directly
transferring:
 - export glyphs as svg from Condensed font
 - in the Mono font set the width of the empty target glyphs to 1233
 - import the svgs
 - scale the glyphs X to 75% (100% in Y)
 - center the glyphs within the width

The exact same glyphs have been used for all 4 fonts.

[note]
Also remove the subdir structure as this is the new way to hold the font
files. Remember to clean the patched-fonts/ directory up before release.

Fixes: #1864

Reported-by: @pmadzik
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-06-13 06:38:49 +02:00
Finii
db46f01c7a [ci] Update FontPatcher.zip 2025-06-07 15:03:38 +00:00
allcontributors[bot]
fa7c3b9b3a docs: add mietzen as a contributor for bug (#1883)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-06-07 16:58:30 +02:00
Fini Jastrow
36c7c3805e font-patcher: Fix wrong specialities matching
[why]
When the name to parse has 'for' in it - even when it is in the middle
of a word like 'formidable', 'unfortunate', or, 'forced' the "For" part
will be cut off and separated from the rest.

[how]
The reason is the code to remove 'For Powerline' from font names.

Instead of matching 'For' and 'Powerline' individually and then removing
the 'Powerline' and 'For' token later on (which fails if there is just a
'For' token like with 'Un' 'For' 'Tunate'), we now match only on a 'For'
if it is followed by a 'Powerline'.

To make the removal of the other-token easier later on we rename/unify
the token to be CamelCase.

Fixes: #1877

Reported-by: @mietzen
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-06-07 16:56:24 +02:00
Fini Jastrow
f01ae02100 font-patcher: Fix comment
Never trust comments :-/

Obviously the code has been changed a bit, and the commend did not
reflect that.

Instead of having two different modes (the variable is gone completely)
it just automatically handles verbantim token different from
non-verbatim token (which must be regexes).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-06-07 16:56:24 +02:00
Fini
a9cb48e9f4 Merge pull request #1881 from ryanoasis/feature/slash-in-name
font-patcher: Fix patching of fonts with slashes in name
2025-06-06 16:04:51 +02:00
Fini Jastrow
89398e834e font-patcher: Fix patching of fonts with slashes in name
This is just an empty commit to crate a PR for a directly pushed fix
(with the same name).
The PR is needed to create a nice release message :-}
2025-06-06 16:00:36 +02:00
Fini
bc12f6a48b All contributors/add oktoling (#1880)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-06-06 15:52:02 +02:00
Finii
05303b5d48 [ci] Update FontPatcher.zip 2025-06-06 13:49:33 +00:00
Fini Jastrow
30a9b82eff font-patcher: Fix patching of fonts with slashes in name
[why]
When trying to patch Anka/Coder fontforge reports it can not open the
font file.

[how]
When opening a font file we open all fonts within that file. For a ttf
or otf that is one font, but ttc can contain multiple fonts (of course).

The fontforge open function takes the font filename and the subfont name
in parenteses appended to the font filename. For example
`directory/folder/myfont.ttf` which contains just MyFont, it opens via
`directory/folder/myfont.ttf(MyFont)`.

That algorithm is not very smart, and so this fails
`directory/folder/AnkaCoder-r.ttf(Anka/Coder)` because it assumes the
directory goes up to the last slash and takes `Coder)` as filename.

But instead of using the concrete subfont name we can also specify the
index of the subfont in the font file, and that circumvents the problem.

[note]
The TTC opening feature is not well documented in Fontforge, best
described here:
https://fontforge.org/docs/ui/menus/filemenu.html#the-file-menu

Fixes: #1879

Reported-by: @oktoling
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-06-06 15:37:24 +02:00
Fini Jastrow
ad6ccb2714 CI: Create new FontPatcher.zip only at the end of release workflow
[why]
We have an obsolete glyhnames.json in the release FontPatcher.zip.

[how]
Packaging the FontPatcher.zip should be the last step when everything
has already been updated.

Some code from the zip-release.yml workflow is copied into the
release.yml :-/ but we need to do it at the exact right time.

Note that we need to commit-push before we call the
github-pages-deploy-action.

[note]
Related: #1868

Reported-by: @subframe7536
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-21 16:59:17 +02:00
allcontributors[bot]
fcaadcab12 docs: add subframe7536 as a contributor for bug (#1869)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-05-21 13:19:33 +02:00
allcontributors[bot]
b3c1b0cf42 docs: add peppapig450 as a contributor for bug (#1867)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-05-09 18:22:44 +02:00
Fini Jastrow
e8fa89bfcb install.sh: Add deprecation warning
[why]
I guess people do not know this probably, or gloss over it when reading the readme.md.

We would need to throw together something new that maybe utilizes
bin/scripts/fetch-archives.sh

But then, cloning the repo is no good idea in any situation. And how would
people get the new script without cloning. Not sure it's worth it.

Lets see if people complain with this warning.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 17:58:32 +02:00
Fini Jastrow
fe10f51a8e install.sh: Fix broken copy commands on MacOS
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 17:46:46 +02:00
Fini Jastrow
044a7c31ed install.sh: Add info on actually used bash version
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 17:46:46 +02:00
Fini
dfe30cd8ed Merge pull request #1866 from ryanoasis/feature/downgrade-install-bash-3
Downgrade install.sh to bash 3
2025-05-09 17:13:05 +02:00
Fini Jastrow
2c710f0d75 install.sh: Work around find-on-MacOS
Note that `find` on MacOS does not know `-printf`

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 17:02:36 +02:00
Fini Jastrow
d0793d0293 install.sh: Drop most bashisms
[why]
We want to have this scripts working with the standard MacOS bash, which
is an ancient version 3.

[how]
Change the shebang to `sh` and use checkbashisms and shellcheck.
Afterwards change to `bash` again. See note in the code about
exceptions:

    # This script must run with bash 3
    # In fact it is checked against `checkbashisms` and no bashisms are
    # used, except (because the workarounds are too involved):
    #
    # - <( ) process substitution
    # - read -d option
    # - $'\0' to supply a nullbyte to read -d
    # - <<< here-string

See also https://askubuntu.com/questions/1059265/whats-the-problem-with-bashisms

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 16:14:38 +02:00
Fini Jastrow
0cbf18224c install.sh: Reintruduce extension parameter
[why]
At the moment we have every font only in one format (ttf or otf), so the
preference option does not do much (does not do anything).

Anyhow, it was there before and maybe at some point we take the multiple
formats up again, and then we are prepared.

[how]
Instead of the previous solution to search for all formats and then try
to remove the duplicates we search first for the desired format and if
we find not one font we search for the other format. This is slightly
different but the outcome is the same.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 11:43:24 +02:00
Fini Jastrow
13cb21c4a5 install.sh: Make bash 3 compatible
[why]
Vanilla MacOS has just some very old bash 3 installed by default. People
might want to use the install.sh, but not install a newer bash (via
Homebrew for example).

[how]
The `nerdfonts_dirs` array is replaced by a normal bash variable (string)
where the directories are '/' separated. Because there are never
subdirectories in the list but only direct children of 'patched-fonts/'
it is possible to use slash as unique and out-of-band separator.

The `fonts` array is replaced by a function that delivers the list of
files in null-byte separated form. That means we can not manipulate the
list and thus the duplicate checking is dropped. As we do not have any
font in both formats (anymore) it will never happen anyhow.
Dropping the duplicates check also removes the extension preference
option functionality. We keep the now defunct option, though.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 11:43:24 +02:00
Fini Jastrow
3f915946d8 install.sh: Refactor
Pull some common code out of a nested double case into a function.
That makes the code much more readable (for me).

Also simplify find expression.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 11:43:24 +02:00
Fini Jastrow
4b952a9d85 install.sh: Fix usage
Some things changed but the usage information has not been updated.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-09 09:18:22 +02:00
Fini Jastrow
cad5f30532 install.sh: Remove unused code
[why]
This is a forgotten leftover from commit
  6edfff3d3  install.sh: Avoid arbitrary cmd exe

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-08 10:55:52 +02:00
Fini Jastrow
ca0b8c60fe install.sh: Small improvements
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-08 10:50:17 +02:00
Fini Jastrow
6edfff3d31 install.sh: Avoid arbitrary cmd exe
[why]
There is some risk that an arbitrary command can be smuggled in and
possibly executed with root rights in some situations.
See PR #1861.

[how]
Use xargs instead of eval to store the predefined filter arguments (that
come as one string) into individual arguments of the find command.

Reported-by: Nick Brady <nbgeniu1@gmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-05-08 10:50:07 +02:00
allcontributors[bot]
7f220bd8bc docs: add Pairadux as a contributor for bug (#1859)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-04-28 21:35:54 +02:00
allcontributors[bot]
e2d930d2ce docs: add sliva0 as a contributor for doc (#1856)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-04-28 15:32:35 +02:00
sliva0
b71ca20f6a Update cheatsheet-foot.txt
fix random plus sign
2025-04-28 15:31:35 +02:00
Fini Jastrow
a27373efd7 gh-pages: Add more explicit wording on MD update on cheat-sheet
Fixes: #1795

Tried this already via

    7a6b90f1 Add more explicit wording on MD update

but of course that is wrong and has to be changed in the generator
instead.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-04-25 09:50:35 +02:00
Fini Jastrow
6f0099abec doc: Update font-patcher options
[why]
We dropped one option and got two new ones...

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-04-25 09:39:42 +02:00
Finii
3a50bbe609 [ci] Update FontPatcher.zip 2025-04-24 19:32:28 +00:00
Fini Jastrow
dc4e3309d6 CI: Prepare for update casks workflow run [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-04-24 20:21:16 +02:00
Fini Jastrow
64695779fc Fix Atkinson image preview font
Relates to PR #1802

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-04-24 19:56:03 +02:00
Fini Jastrow
cabcc4a60d doc: Fix typo
😬

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-04-24 19:31:36 +02:00
Fini Jastrow
8b025c8bed doc: Fix typo
Fixes: #1853

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-04-24 19:28:06 +02:00
Finii
fa7b859994 [ci] Regenerate CSS files v3.4.0 2025-04-24 16:34:56 +00:00
Finii
8e29089eb7 [ci] Regenerate fontconfig 2025-04-24 16:33:44 +00:00
Finii
ae57d27445 [ci] Rebuild patched fonts 2025-04-24 16:28:01 +00:00
Finii
896b9e127b [ci] Bump release version 2025-04-24 16:25:19 +00:00
Finii
3946e4aeb1 [ci] Update .gitignore file 2025-04-24 13:48:47 +00:00
Fini Jastrow
bfd14fc1cd Fix Atkinson's folder name in fonts.json
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-04-24 15:45:26 +02:00