1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-06 21:49:40 +02:00
Commit Graph

2683 Commits

Author SHA1 Message Date
Fini Jastrow
662a61440f font-patcher: Rename glyphs to our ID / Class name
[why]
The glyphnames in the font files are sometimes off. We take them from
the symbol source/font and ofter they are empty or even plain wrong (esp
if we move to other codepoints).

[how]
We have the list of all glyphnames that is generated by collecting all
data from the i_*.sh files. When patching we take this information now
and use it if appropriate.

Make sure the glyphname.json file is included in our zip patcher release
and also in the Docker image. It will run as before if the file can not
be found or is invalid etc.

Suggested-by: Ulices <hasecilu@tuta.io>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-13 16:51:19 +01:00
Fini Jastrow
0900e07e97 Devicons: Fix wrong glyph ID for sqlite
[why]
sqlite is referred to as sqllite (with two L).

[how]
Correct i_dev and rebuild css and glyphnames via generate-css.sh

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-13 16:50:33 +01:00
Fini Jastrow
f530e22e23 font-patcher: Correct handling of right aligned proportional icons
[why]
The right align check does produce wrong results if a proportional font
is generated.

[how]
Just skip the aspect ratio alignment re-check and leave the work to the
proportional font shifting that is done afterwards anyhow.

Fixes: #1695

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-11-13 16:22:53 +01:00
Fini
300890327a
Merge pull request #1726 from ryanoasis/bugfix/other-weather
Increase weather icons 'other' icons scale
2024-10-30 14:57:05 +01:00
Fini Jastrow
25ee48c0c3 font-patcher: Fix weather icons scale for 'other' icons
[why]
A lot of icons that do not represent a 'weather state' but rather a
'weather event' are in the 'weather state' scaling group which scales
the icons waaaay down. This makes those icons almost unusable in stand
alone use cases.

[how]
Put all the extra icons into a new scaling group that is defined before
the weather state scaling group and thus takes precedence.

Split the final scaling group to have some icons on individual scale.

Fixes: #1708

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-30 14:50:15 +01:00
Fini
d3bb7e2964
Merge pull request #1722 from ryanoasis/feature/FontAwesome-scaleing
FontAwesome: Scale glyphs a bit smaller
2024-10-28 23:43:29 +01:00
Fini Jastrow
3936a4881f archive-fonts: Fix shellcheck warning
[why]
archive-fonts.sh:60:10: note: Double quote to prevent globbing and word splitting. [SC2086]

Although the variable can not hold multiple words, it is better to
always quote.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-28 23:33:57 +01:00
Fini
02cd12e4de
Merge pull request #1724 from ryanoasis/feature/more-landing-platforms
Increase Powerline overlap (big triangles and more)
2024-10-28 23:27:29 +01:00
Fini Jastrow
525b634c09 Increase Powerline overlap (big triangles and more)
[why]
There are still the annoying vertical colored lines sometimes that turn
up due to subpixel rendering.

[how]
Add "landing platforms" to the big triangular glyphs (E0B8, E0BA, E0BC,
E0BE) and flames (E0C0, E0C2).
The landing platform is approx 7% wide (based on one-cell width, assuming
the glyphs are all rendered 2 cells wide for the "xy2" ones).

Increase the overlap width for patching to 5%.

See also:
Merge request #1551
Merge request #1419
Commit 5e285867
Commit a8b9e1da

Fixes: #1629 (well, not the top problem which is unfixable)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-28 23:07:50 +01:00
Fini Jastrow
c7b28f0f09 FontAwesome: Scale glyphs a bit smaller
[why]
With Nerd Fonts v3.2.0 Font Awesome was updated to 6.5.1.

A lot icons got replaced and so the scaling was completely different
then with the old Font Awesome version as the icons were different.

Some complained that the new icons were to small, so that was fixed with
Nerd Fonts v3.2.1, where the size was increased by "approx 10%".

Now this seems a bit on the big side, so we decrease the size a bit.

[how]
v3.2.0   EM 1400    relative size 1.00
v3.2.1   EM 1200    relative size 1.17
v3.3.0   EM 1300    relative size 1.08

So we go to 92% of v3.2.1, i.e. -8% in height.

Note that the original change with v3.2.1 was +17% instead of the
intended 10% :-(

That 10% was just "some random number out of the blue".

Related: #1588
Fixes: #1614

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-28 19:28:22 +01:00
Finii
93300dcb91 [ci] Update FontPatcher.zip 2024-10-28 16:30:02 +00:00
Fini Jastrow
622de682cc font-patcher: Fix patching woff files
[why]
After we added the possibility to process font archives (.ttc) we lost
the ability to process woff and woff2 fonts.

It seems woff(2) files show no font names in fontforge, see
https://github.com/fontforge/fontforge/issues/1964

[how]
Open woff(2) files differently.

Fixes: #1647 (further down)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-28 17:27:06 +01:00
Finii
9f85498d48 [ci] Update FontPatcher.zip 2024-10-28 15:49:02 +00:00
Fini Jastrow
4ab9d898d7 Fixup: Update Font Logos
[why]
Somehow a wrong Font Logos font is commited.

"River" at F381 missing.

[how]
Download font from Font Logos Release page and add that.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-28 16:40:20 +01:00
Finii
7ba2bf97da [ci] Update FontPatcher.zip 2024-10-28 15:32:56 +00:00
Fini Jastrow
2123aea420 Update Font Logos to 1.3.0
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-28 16:28:01 +01:00
Fini Jastrow
bc044d1df0 CascadiaCode: Mention upstream's NF version
Fixes: #1622

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-08 12:43:52 +02:00
Fini Jastrow
72b1ac8ebf archive-fonts: Put fontconfig file into SymbolsOnly package
[why]
If someone uses the SymbolsOnly font that person is likely to also like
the fontconfig setup file.

Fixes: #1713

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-08 12:14:26 +02:00
Fini Jastrow
dbab8195f9 archive-fonts: Prevent empty archives
[why]
If there are no font files (e.g. in a font that is not released in repo)
the call succeeds but creates an archive with just the README and no
fonts.

[how]
Fail with an error if not at least one font file is packaged.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-08 12:12:09 +02:00
Fini Jastrow
ca668663ac archive-fonts: Prevent wrong README files
[why]
In some abnormal circumstances a README of the previous font can end up
in the next font's archive.

[how]
Remove the README file always directly after packaging.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-10-08 12:10:22 +02:00
Fini
384b1825ea
Merge pull request #1701 from jpawlowski/jpawlowski-patch-1
docs(install): Add PowerShell Web Installer
2024-09-05 13:21:38 +02:00
allcontributors[bot]
78cf90c694
docs: add jpawlowski as a contributor for doc (#1702)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

* doc: Add tools tag for Julian Pawlowski

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>

---------

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-09-05 13:19:19 +02:00
Julian Pawlowski
b622bc3f0a
docs(install): Shrink description for PS Web Install and add 3rd-party link 2024-09-02 19:05:35 +02:00
Julian Pawlowski
7887fe7fea
doc(install): Fix redirect to latest version on PS Gallery
PS Gallery doesn't like the trailing slash
2024-09-01 14:12:00 +02:00
Julian Pawlowski
dae056214f
doc(install): Add PowerShell Web Installer 2024-09-01 13:57:47 +02:00
allcontributors[bot]
f8f0bdaa2b
docs: add doongjohn as a contributor for bug (#1698)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-08-30 13:07:42 +02:00
Fini Jastrow
224174a663 doc: Show RFN permissions more visibly
[why]
The fonts where we are allowed to keep the font name despite the RFN
clause in the license have nothing mentioning of RFN or the exception in
the readmes. But it is recommended (required?) by SIL to inform users of
that exception in a most transparent way.

[how]
Add that bit of information to the readme files in the patched-fonts
directories and the release archives.

[note]
Also some other information seemed to be missing, by the complete
rebuild of the readme it also got updated (Gohu/ProFont).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-08-30 12:57:59 +02:00
Fini Jastrow
66ae03de2e shellcheck.sh: Unify variable style
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-08-28 09:32:03 +02:00
Fini Jastrow
d294607b12 cheatsheet.sh: Make CWD independent
[why]
Sometimes people like to call the scripts from any directory and do not
want to change into the bin/scripts/ directory first.

[how]
Just access the lib files relative to the cheatsheet script file.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-08-28 09:32:03 +02:00
Fini Jastrow
e6bba1b43f Remove editor specific config file
I do not even know which editor that might be ;-)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-08-28 09:25:35 +02:00
Fini Jastrow
4712c89819 cheatsheet.sh: Add README entry
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-08-28 09:25:35 +02:00
Fini Jastrow
4b4955ff53 cheatsheet.sh: Fix shellcheck
... and slightly change description

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-08-28 09:25:35 +02:00
hasecilu
2025f40362 Add CLI cheatsheet script 2024-08-28 09:25:35 +02:00
Fini Jastrow
c4d714e126 Rename dev "gu5e" to "realguse"
Fixes: #1692

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-08-27 08:09:49 +02:00
Fini Jastrow
a2697b0fef doc: Update license-audit with information from fonts.json [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-07-17 11:29:58 +02:00
Fini Jastrow
9c7fa1c9a7 Monaspace: Add ExtraLight Italic
Fixup of previous commit.
Fixes: #1670

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-30 17:50:54 +02:00
Fini Jastrow
264c7383e6 Monaspace: Add ExtraLight to prepatched set
Fixes: #1670

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-30 16:19:47 +02:00
Fini Jastrow
11ab942893 gitlab: Small change on bug template
[why]
Make sure the examples are understood correctly and add some more info.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-26 10:03:44 +02:00
guse
87402e09c2 fix: update labels and make checkboxes not required 2024-06-26 10:03:44 +02:00
guse
480f741d3b feat: improve feature request template 2024-06-26 10:03:44 +02:00
guse
fce46e4ba5 feat: improve bug report template 2024-06-26 10:03:44 +02:00
allcontributors[bot]
9f90a4ecb7
docs: add mdsanima as a contributor for maintenance (#1669)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-06-26 07:15:30 +02:00
allcontributors[bot]
443ebe986f
docs: add gu5e as a contributor for doc (#1668)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-06-26 07:09:31 +02:00
Fini Jastrow
a4ddd1e867 Fix Gohufont 14 question mark
Also clean up README situation.

Fixes: #1652

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-18 13:13:00 +02:00
Fini Jastrow
4e0ed0fbb0 Prepare Gohufont 14 question mark fix
[why]
Ordinary questionmark and inverted questionmark in upstream Gohufont 14
have the same glyph name, breaking the font.

[how]
Rename the inverted questionmark to the customary "inverted" via ttx.

This just prepares the change.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-18 13:13:00 +02:00
Fini Jastrow
45c432fe0d doc: State that no patched fonts are to be manually committed
[why]
It is explicitely explained for updating fonts but not for new fonts.

[how]
Copy appropriate text passage to new fonts paragraph.

Fixes: #1655

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-18 08:30:09 +02:00
allcontributors[bot]
6e7dc49ec4
docs: add dsvoid as a contributor for bug (#1653)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-06-11 20:40:39 +02:00
allcontributors[bot]
f43607afcc
docs: add kjkent as a contributor for bug (#1649)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-06-02 08:57:11 +02:00
Finii
91532f91d9 [ci] Update FontPatcher.zip 2024-06-02 06:51:23 +00:00
Fini Jastrow
b95c671ccb font-patcher: Fix behavior when trying to patch non-font files
[why]
When the file specified to be patched is not a font file the patcher run
errors out with an out of index runtime error:

Traceback (most recent call last):
  File "/home/fini/extra/git/nerd-fonts/font-patcher", line 2155, in <module>
    main()
  File "/home/fini/extra/git/nerd-fonts/font-patcher", line 2147, in main
    patcher.generate(sourceFonts)
  File "/home/fini/extra/git/nerd-fonts/font-patcher", line 415, in generate
    sourceFont = sourceFonts[0]
                 ~~~~~~~~~~~^^^
IndexError: list index out of range

[how]
Do not assume that the specified file will be a font file but rather
check if fontforge detects a font in the file and error out if there is
no font found.

Fixes: #1647

Reported-by: Kristopher James Kent <kris@kjkent.dev>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-02 08:48:31 +02:00