1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-25 03:32:02 +02:00

2796 Commits

Author SHA1 Message Date
allcontributors[bot]
ec9b47dd2f
docs: add saumyajyoti as a contributor for bug (#1787)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-01-17 22:51:09 +01:00
Finii
3273ec0e7b [ci] Update FontPatcher.zip 2025-01-15 15:49:26 +00:00
Fini Jastrow
ae179415ec font-patcher: Allow absolute paths on Windows
[why]
On Windows an absolute path can start with the drive letter followed by
a colon. When we sanitize the pathname the colon is replaced by an
underscore.

[how]
Add special handling on Windows.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-15 16:46:40 +01:00
Fini Jastrow
c1859cfb47 font-patcher: State encoding of datafile
[why]
Some user reported a unicode decoding issue.

[how]
Usually it should work but when the system has some strange setting the
datafile might be interpreted as something else (not utf8).

When the file is opened as binary it should be decoded as utf*.

Possibly fixes: #1761

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-15 16:46:40 +01:00
Fini Jastrow
34a14990b0 font-patcher: Correct path handling
[why]
Although Python can handle a mixture of Windows and Posix path
separators we should use the system one if possible.

[how]
Use os.join()

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-15 16:46:40 +01:00
Fini Jastrow
1bef5972ff font-patcher: Fix orthography [skip ci]
[why]
Some English words are spelled wrongly.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-15 13:16:58 +01:00
Fini Jastrow
b42741a38a font-patcher: Sort help list
[why]
It can be easier to search through a alphabetically sorted list.

[how]
Sort the argument lists alphabetically within their section.
Also make the long form the main form.

The `-ext` and `-out` are still a wart as they are long forms that do
not start with a douple-dash :-/

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-15 13:16:33 +01:00
Finii
0661f41256 [ci] Update FontPatcher.zip 2025-01-08 20:48:24 +00:00
Fini Jastrow
c0f0c70de8 font-patcher: Comment on maybe strange looking code
[why]
I again had to look the reason for the code up, which just looks
strange. Who expects that a bool is an instance of int? I certainly not.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 21:45:41 +01:00
Fini Jastrow
089dda1523 font-patcher: Add new option --cell
EXPERIMENTAL

[why]
Sometimes users want to tweak the cell sizing or the baseline to
baseline distance, or the middle point of the cell.

[how]
Add a new option to show the 'cell' box and to override the detected
one. It is not sufficient to adjust width and height, because that can
not define shifts of the cell up/down (left/right is mostly useless and
I believe the code does not work if the xmin is not zero).

The smaller icon-height is not used here (affecting only --mono) because
that seems to compilcated right now.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 21:45:41 +01:00
Fini Jastrow
b578b6b9f5 archive-fonts: Fix shellcheck warning
[why]
This warning turns up with shellcheck 0.9.0, but not with 0.8.0 which we
used previously.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 21:45:41 +01:00
Fini Jastrow
2bda0614d9 font-patcher: Add possibility to create single width icons without touching existing glyphs
[why]
This can help if you want monospaced icons but not-force the other
glyphs to be monospaced (which we do to make the whole font
monospace-detectable which was a major issue in the beginning, esp with
Windows).

[how]
Add option --single-width-glyphs that makes the added glyphs single
width (like --mono), but leaves preexisting glyphs untouched.

Fixes: #1772

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 21:45:41 +01:00
Fini Jastrow
80942b9b82 font-patcher: Remove option --use-single-width-glyphs
[why]
There are three possible options to specify the Nerd Font Mono generation:
    -s
    --mono
    --use-single-width-glyphs

All the three are handled the same.

In order to add a new long option that also handles glyph width in a "single"
cell manner the fear is that two too similar options will confuse users.

[how]
Just hide the longest form.
Also remove from the readme files.

Need to adapt the install.sh script.

(The option still works but is not 'advertised'.)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 21:45:41 +01:00
Fini Jastrow
de2fed499e Add icon number calculation
[why]
This file had been used to collent and calculate the number of icons
with the last release. It can be reused for the next release to easen up
the data collection.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 08:01:20 +01:00
Fini Jastrow
3d87208986 Devicons: Correct version number [skip-ci]
[why]
The version number of the deficons.ttf did not change but the glyphs got
modified.

[how]
The version number is manual anyhow, so use a `git describe --tags` like
descriptor. That can also stay for example when/after 3.4.0 is released.

[note]
Skipping zip creation because another MR will be pulled soon and we can
reduce the repo size by having fewer changed files (i.e. the zip).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 07:12:26 +01:00
Finii
43efa508e1 [ci] Update FontPatcher.zip 2025-01-08 01:14:21 +00:00
Fini
64a59f158b
Merge pull request #1779 from ryanoasis/bugfix/devicons
Bugfix some devicons icons
2025-01-08 02:11:57 +01:00
Fini Jastrow
8a6ae8e87d Devicons: Activate changes
$ fontforge generate 2>/dev/null

Reading mapping file
Found 496 entries

Unpacking Devicons archive

Mixing Vorillaz Devicons and possible fixes in
Found 1743 svgs
Using fixed svg for bitbucket-original.svg
Using fixed svg for akka-plain.svg
Using fixed svg for nodejs-plain.svg
Using fixed svg for angularjs-plain.svg
Using fixed svg for antdesign-plain.svg
Using fixed svg for awk-plain.svg
Using fixed svg for opera-plain.svg
Using fixed svg for bash-plain.svg
Using fixed svg for beats-plain.svg
Using fixed svg for nginx-plain.svg
Using fixed svg for yii-plain.svg
Using fixed svg for firebase-plain.svg
Using fixed svg for clojurescript-plain.svg
Using fixed svg for cosmosdb-plain.svg
Using fixed svg for mongodb-plain.svg
Using fixed svg for rust-original.svg
Using fixed svg for intellij-plain.svg
Using fixed svg for materializecss-plain.svg
Using fixed svg for datagrip-plain.svg
Using fixed svg for electron-plain.svg
Using fixed svg for figma-plain.svg
Using fixed svg for goland-plain.svg
Using fixed svg for googlecloud-plain.svg
Using fixed svg for graphql-plain.svg
Using fixed svg for hardhat-plain.svg
Using fixed svg for hibernate-plain.svg
Using fixed svg for homebrew-plain.svg
Using fixed svg for jetbrains-plain.svg
Using fixed svg for karma-plain.svg
Using fixed svg for kibana-plain.svg
Using fixed svg for latex-original.svg
Using fixed svg for livewire-plain.svg
Using fixed svg for llvm-plain.svg
Using fixed svg for materialui-plain.svg
Using fixed svg for matplotlib-plain.svg
Using fixed svg for maven-plain.svg
Using fixed svg for maya-plain.svg
Using fixed svg for nimble-plain.svg
Using fixed svg for norg-plain.svg
Using fixed svg for nuxtjs-plain.svg
Using fixed svg for okta-plain.svg
Using fixed svg for playwright-plain.svg
Using fixed svg for plotly-plain.svg
Using fixed svg for portainer-original.svg
Using fixed svg for postcss-original.svg
Using fixed svg for puppeteer-plain.svg
Using fixed svg for pytorch-original.svg
Using fixed svg for quarkus-plain.svg
Using fixed svg for qwik-plain.svg
Using fixed svg for sdl-plain.svg
Using fixed svg for sequelize-plain.svg
Using fixed svg for sqldeveloper-plain.svg
Using fixed svg for streamlit-plain.svg
Using fixed svg for threejs-original.svg
Using fixed svg for tomcat-plain.svg
Using fixed svg for vagrant-plain.svg
Using fixed svg for vuestorefront-plain.svg
Using fixed svg for woocommerce-plain.svg
Using fixed svg for zig-plain.svg
Generating devicons.ttf with 496 glyphs
Generating GlyphInfo i_dev.sh
Finished

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 01:57:52 +01:00
Fini Jastrow
6ec064551d Devicons: Fix more icons
Mostly double-points or gaps or overlaps.
Manually fixed in Inkscape, mostly
* join-points
* path union
* path break-apart && path exclusion

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 01:53:00 +01:00
Fini Jastrow
50ad4c90b9 Devicons: Fix rust icon
[why]
Some part of the path is not interpreted as hole.

[how]
Recreate full path parts by first breaking apart and then recombining
the paths (manually in Inkscape).

Fixes: #1760

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 01:52:58 +01:00
Fini Jastrow
b496b3b03f Devicons: Manually optimize many icons
[why]
A lot icons have visually obvious issues, small but visible.
Often the source is a color svg and someone just made them monochrome
for the plain version. But it is still different paths and not joined.
That can lead to small glitches with the fontforge svg import.

[how]
Manually inspect some icons and recreate a new plain icon wich consists
of one flat path.

For Plotly we also update to the current logo with circles as ...
circles and not some squiggly lines.

Tomcat and Zig also get plain variants which they lack upstream.

Fixes: #1771

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-08 01:52:53 +01:00
realguse
5c887740c7
docs: update info for realguse (#1782)
* docs: update info for realguse
2025-01-07 22:43:44 +01:00
allcontributors[bot]
00e376df70
docs: add realguse as a contributor for review (#1781)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-01-07 13:51:04 +01:00
allcontributors[bot]
0b8256875d
docs: add skoch13 as a contributor for code (#1780)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-01-07 13:48:14 +01:00
Fini
06fff30baf
Merge pull request #1762 from skoch13/sk/update-css-icon
Update CSS icon
2025-01-07 13:47:01 +01:00
Fini Jastrow
1a3d8ff6d4 font-patcher: Increase version after icon addition [skip-ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-07 13:45:00 +01:00
Finii
66e7103cd4 [ci] Rebuild original-source font 2025-01-07 13:40:56 +01:00
Fini Jastrow
565f4e753f svgs: Add new css icon to custom set
We keep the Seti css logo, as the abstract hash tag is prone to 'misuse'
for other purposes and an update of the logo would break it. Anyhow CSS
shield is the current logo before the newly added one, and anyone who
used the Seti css logo (i.e. hash tag) would probably mean something
entirely different.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-07 13:18:28 +01:00
Fini Jastrow
0b0301a2dc svgs: css: Simplify to path
[why]
Fontforge's cvs import sometimes struggles (hard) on transforms.

[how]
Apply the transform before saving. It's not that we want to edit it
anyhow, so no reason to keep that abstraction.

Also remove some meta-information.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2025-01-07 13:14:47 +01:00
Sergey Kochetkov
0c34517a43
feat(svgs): add css_new icon 2025-01-07 12:52:31 +01:00
Finii
6d0b8ba05a [ci] Update FontPatcher.zip 2024-12-22 22:19:00 +00:00
Fini
19753b0d04
Merge pull request #1768 from hasecilu/fix/devicons_end_codepoint
fix(font-patcher): update `SymEnd` codepoint for devicons font
2024-12-22 23:16:21 +01:00
Fini Jastrow
bb72dca023 font-patcher: Increase version after bugfix
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-12-22 23:14:21 +01:00
hasecilu
b012d9fb50
fix(font-patcher): update SymEnd codepoint for devicons font 2024-12-22 14:25:39 -06:00
Fini
76179ef368
Merge pull request #1765 from realguse/patch-1
docs: improve contributors badge
2024-12-22 10:31:19 +01:00
allcontributors[bot]
bb6e046ca7
docs: add crummyh as a contributor for doc (#1767)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-12-22 09:30:20 +01:00
Fini Jastrow
9517ce4677 doc: Fix link to Departure Mono preview
Fixes: #1766

Reported-by: @crummyh
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-12-22 09:23:49 +01:00
realguse
dca16696fa
docs: update contributors badge 2024-12-21 17:08:13 +01:00
Fini Jastrow
17dcbea754 doc: Mention needed bash version
[why]
Some bash scripts we have need bash version 4 or better. For example native
arrays where added with that version in 2009.

Unfortunately Apple decided to keep a very very old version of bash in
their setup which will not work.

[how]
Add information on needed bash version at least in the readme file.

We could now rewrite all scripts to work with bash 3; I tried that but that
is a tremendous amount of work and I guess the time is spent better on some
real problems; especially because only a small number of users are affected
and they could also just switch to recent bash version.

We could also add checks for the bash version to the scripts. This is not
done here.

[note]
Also remove obsolete explanatory entry; that subdir has been deleted.

Fixes: #1680

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-26 19:29:56 +01:00
Fini Jastrow
30b2e22671 doc: Correct formatting of bullet-less list
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-26 19:15:55 +01:00
Fini Jastrow
7b23967286 CI: Regenerate glyphnames before release
[why]
When the icon sets have changed (added or names changed) the i_*.sh
files are (hopefully) up to date, but the glyphnames.json file is only
updated on release.

Unfortunately the font-patcher uses the glyphnames.json to determine the
patched-in glyphs' names, but in the workflow the json file is only
updated after all fonts have been patched.

[how]
Like the version number in the font-patcher file we also create a
transient glyphnames.json in each patching job, that the font-patcher
can then utilize.

Still the in-repo glyphnames.json is only updated after successful
release. So in pinciple we call the generate-css.sh (which also
generates the glyphnames.json) once for every font in the font matrix
(just before patching) and then finally after all patching has been done
again and that is committed back to the repo.

Fixes: #1745

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-26 18:35:31 +01:00
Fini Jastrow
b4d1b5bdd1 generate-css: Speedup by factor of 25
[why]
The script is extremely slow.

[how]
Instead of spawning a new subshell for each glyph (to determine the
codepoint of a char), execute the printf within the current shell.

Before:
./generate-css.sh  25,06s user 33,26s system 101% cpu 57,414 total

After:
./generate-css.sh  1,89s user 0,50s system 102% cpu 2,330 total

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-26 18:35:31 +01:00
Fini Jastrow
c09f4c09b9 Update readme's font-patcher version
No options changed, but it just looks better to have a more recent
version number in the example.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-21 14:38:54 +01:00
Fini Jastrow
3c4faa7e36 Update Sankey Diagram
[why]
With the latest release the numbers were just changed (in the svg) but
the flow graph stayed the same. The relative proportions can now look a
bit out of place.

[how]
Completely regenerate the graph from the Sankey generator.
Afterwards some manual adjustments to get the color and the position
right (in Inkscape).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-21 13:54:12 +01:00
allcontributors[bot]
6687265090
docs: add cub-uanic as a contributor for doc (#1750)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-11-20 18:59:25 +01:00
Oleg Kostyuk
40e450fa8b Typo fixes in changelog.md 2024-11-20 18:58:13 +01:00
Fini Jastrow
2a1479e55e doc: How to install font files
Fixes: #1417

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-20 14:22:57 +01:00
allcontributors[bot]
1ed81d833f
docs: add nikelborm as a contributor for doc (#1748)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-11-20 11:08:31 +01:00
Fini
57d2804aaa
Merge pull request #1716 from nikunjmathur08/add-lessutfchardef-instructions
Add LESSUTFCHARDEF instructions for less PUA character display Fixes: #1337
2024-11-20 11:03:29 +01:00
Fini Jastrow
91a6747e9d doc: Move client hints to Wiki
[why]
The main readme is already too big anyhow.
We should extract topics into sub-pages rather than adding more.

[how]
Use the Wiki instead and link the Wiki clearly, with entries in the TOC.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-20 11:00:45 +01:00