Commit graph

2359 commits

Author SHA1 Message Date
negset
9f6f89ae41 name-parser: Fix REGULAR bit of fsSelection
Set bit 6 (REGULAR) of fsSelection only when bit 0 (ITALIC), bit 5 (BOLD), and bit 9 (OBLIQUE) are clear.
2023-05-10 16:50:50 +09:00
Fini Jastrow
09c83150ae Add Iosevka Term Slab
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-07 12:41:24 +02:00
Finii
3445d2d8fe [ci] Update FontPatcher.zip 2023-05-07 08:22:42 +00:00
Fini Jastrow
7e0c17c294 font-patcher: Drop box-drawing from SymbolsOnly
[why]
The Box Drawing glyphs need to be carefully scaled. This can not be done
if the glyphs are pulled in via font-fallback I guess.

As people may have the fontconfig set up in a way to prefer the Symbols
Only font these glyphs could overrule other box drawing glyphs that
might fit better.

I'm not really sure about this one, but the glyphs look rather bad
anyhow, because they end up in the 1:1 ascpect ratio cell of the Symbols
Only font.

[how]
Just turn the set off if we patch the Symbols Only font.
Need to swap around two subroutine calls for that; first detect if we
are patching the Symbols Only font (through the font metrics) and then
set the patch sets up.

Fixes: #1210

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-07 10:19:41 +02:00
Md. Abdullah Al Maruf
417acefb2f doc: Fix broken link in readme.md
Changed link again to refer to the default branch ('master' at the
moment) HEAD and use -O instead of needlessly repeating the file name.

Authored-by: Md. Abdullah Al Maruf <62918360+mk1121@users.noreply.github.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-07 08:58:46 +02:00
Finii
58504d670d [ci] Update FontPatcher.zip 2023-05-06 09:19:45 +00:00
Fini
5719402e30
Merge pull request #1208 from ryanoasis/bugfix/logging-on-appimage
Bugfix logging on AppImage
2023-05-06 11:17:25 +02:00
Fini Jastrow
80664a90fe font-patcher: Do not log to file always
[why]
Maybe it is not a good idea to always create the log file, as most
people will never look into it. The main reason for it was the
gotta-patch-em script so that one can check after lots of runs what the
details were.

[how]
Introduce parameter to --debug option.
0 = no debug output
1 = log to file only (previously always selected)
2 = log to stdout only
3 = log to file and stdout (previous default for --debug)

Just specifying --default equals now --debug 2.
The gotta-patch-em runs now with --debug 1.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-06 10:54:05 +02:00
Fini Jastrow
5c968b80ae font-patcher: Do not fail on ro filesystem
[why]
When font-patcher is on a read only filesystem the pacher can not run.
This is for example the case when fontforge is a AppImage.

[how]
Try if the logfile can be written, and if not disable logging into a
file.

Reported-by: Bliss X. Xu <blissLove8@gmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-06 10:29:06 +02:00
Fini Jastrow
e07f6ed68a Regenerate CSS files
Result of generate-css.sh run.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-04 12:42:14 +02:00
Fini Jastrow
46168d53d0 cheat-sheet: Add hint for webfont.css
Compare commit
  7d265161f  Make Symbols-Only webfonts available stand alone

Suggestion via Gitter by @Mikle-Bond

Suggested-by: Michael <Mikle_Bond@mail.ru>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-04 12:42:14 +02:00
Fini Jastrow
1f70d5bc3a generate-css: Create cheat sheet with removed icons
With v3.0.0 we removed some icons and some codepoints have been reused
for a different (expanding) set. We want to show the old (removed) icons
correctly and the new ones also, so we need the old and the new font for
the webpage and reference it accordingly.

For the a new style .nfold (read: nd-olf) is introduced and utilized.

See pairing commit in the gh-pages branch:
    Date:   Thu May 4 06:01:33 2023 +0200
    Update cheat sheet WITH removed icons

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-04 12:42:14 +02:00
allcontributors[bot]
239246599b docs: update .all-contributorsrc 2023-05-03 21:42:11 +02:00
allcontributors[bot]
87f54173fb docs: update CONTRIBUTORS.md 2023-05-03 21:42:11 +02:00
Maaz
f2792419cc Fix Typo 2023-05-03 21:36:06 +02:00
Fini Jastrow
678e68d6cb doc: Remove twitter, as noone will respond there
which is a pity.. but what can we do.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-03 10:07:54 +02:00
Finii
7badc317e0 [ci] Update FontPatcher.zip 2023-05-03 08:00:49 +00:00
Fini Jastrow
c8bd6d7b68 font-patcher: Modernize and expand Octicons scale table
[why]
The scale glyph is not the biggest glyph; the bell-slash is a little bit
wider than the design cell...

[how]
Switch to modern ScaleGroups. These determine the virtual combined
bounding box of all glyphs in the group and scale them 'as one'.

Also add some more groups.

Also correct wrong code of one small stuff.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-03 09:58:23 +02:00
Fini Jastrow
db39f37f8d font-patcher: Fix some Octicons scales
[why]
With the Octicons update some codepoint contents changed.
Also some symbols scale still wrong.

[how]
Check fonts and add / drop entries.
Use GlyphsToScale+ to correct position of Github text icon.

Fixes: #1198

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-03 09:58:23 +02:00
allcontributors[bot]
e74570cb6a docs: update .all-contributorsrc 2023-05-03 09:52:48 +02:00
allcontributors[bot]
2f6a92a261 docs: update CONTRIBUTORS.md 2023-05-03 09:52:48 +02:00
Finii
37ad48d158 [ci] Update FontPatcher.zip 2023-05-03 05:44:01 +00:00
Fini Jastrow
50a5489424 font-patcher: Fix logging related warning
[why]
On some fonts the patcher tries to raise a warning, but it can not.

[how]
The 'overlap' variable can hold a floating point number or be None (if
there shall be no overlap processing. Formerly we output that value
using the {} format, but the logging module does not have that. To
accomodate to different types use repr() instead.

[note]
Also improve some other logging related calls.

Reported-by: Jim Myhrberg <contact@jimeh.me>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-03 07:41:27 +02:00
Finii
1bc5995d51 [ci] Update FontPatcher.zip 2023-05-02 15:25:53 +00:00
Fini Jastrow
d9f7dbe238 Prepatched fonts: Revive some ligature removal
[why]
Some sourcefonts, even that are monospaced, have a `fi` and/or `fl`
ligature that maps into one cell. That looks very strange.

[how]
Partially revert commit
  148b0c445  Sunset ligature removal

for the cases that have a one-cell `fi`, `fl`, etc ligature, or a `ldot`
related ligature - that is active by default. Discretionary ligatures or
Stylistic Sets are not changed.

Do the removal on all patched fonts for consistency, not just `Nerd Font Mono`.

[note]
On Noto different subtables are needed for Sans, Serif and Sans-Mono. We
can not set up different configs for each, so all are tried in all fonts
and might fail (this is normal).
Same holds for OpenDyslexic Alta, Regular, Mono, Bold...

Fixes: #1187

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-02 17:23:11 +02:00
allcontributors[bot]
c4c024e17b docs: update .all-contributorsrc 2023-05-02 16:33:02 +02:00
allcontributors[bot]
3edf2a9a84 docs: update CONTRIBUTORS.md 2023-05-02 16:33:02 +02:00
Daniel M. Capella
d89682024e Use nerd-fonts group link for Arch packages 2023-05-02 16:04:34 +02:00
Fini Jastrow
bf3506a8d5 Add some ProgrammingFonts.org links
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-01 15:16:06 +02:00
Fini Jastrow
c62fb7a831 Update Sankey diagram
[why]
Octicons got expanded.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-01 15:02:53 +02:00
Fini Jastrow
4f46bdfada generate-casks: Fix for nameing changes
[why]
No casks are created.

We have no "Complete" in the path anymore.
And there is no Windows Compatible.

[how]
Drop all the now-unneeded filtering.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-01 11:10:01 +02:00
Fini Jastrow
98c1607de6 CI: Prepare for update casks workflow run [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-01 11:02:48 +02:00
Fini Jastrow
da651cf5a8 install.sh: Fix not working at all
[why]
The install script does not install anything after the 3.0.0 release.

[how]
Throw away all the (unused) patches stuff.
Throw away the compat stuff.
Introduce clean find patterns for all three Nerd Font variants.

Use them depending on the user's desire - also adding an option to
install the new proportional variants.

Additionally throw an error when we did not find any file (instead of
just failing in obscure ways).

[note]
Also output version number on runs.
Also remove some unused options in getopts.

Fixes: #1183

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-01 10:39:11 +02:00
Fini Jastrow
428bbb390c changelog: Typofix
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-05-01 00:18:38 +02:00
Finii
c2071540d9 [ci] Update FontPatcher.zip 2023-04-30 21:44:26 +00:00
Fini Jastrow
04e42c1c69 Lekton: Repatch after line spacing fix
[why]
In the previous commit we changed the way one line metric is choosen
when they do contradict.

This is the only font affected.

[how]
Just run gotta-patch-em. The font now uses TYPO (1000) and not WIN (1697)
anymore.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 23:38:15 +02:00
Fini Jastrow
3432ad667b Revert "font-patcher: Use WIN metrics in all conflicting cases"
This reverts commit 621008773c,
and adapts the code to more recent changes (logging, enums).

[why]
Lekton has a too wide line spacing.

Lekton was the only font that selected TYPO but we forced it to WIN,
because not all glyphs fit into the values from TYPO.
But that seems to be wrong. Examining the glyphs that are really bigger
than the TYPO line spaces, these are only graphical glyphs that shall
span multiple lines. So I guess we should revert that change and render
Lekton with the TYPO values.

[note]
https://github.com/ryanoasis/nerd-fonts/issues/1056#issuecomment-1529141863
2023-04-30 23:36:35 +02:00
Fini Jastrow
6a24da8602 gotta-patch-em: Remove debug code leftover
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 23:33:51 +02:00
Fini Jastrow
6f569003bf Update READMEs
[why]
After updating the template the concrete README.md's have not been
updated (forgotten).

[how]
Just call standardize-and-complete-readmes.sh

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 21:05:46 +02:00
Fini Jastrow
9b3677b7f2 archive-fonts: Fail if something is amiss
[why]
If we do not have a license file an error will be output, but the
complete script will continue and return success.

[how]
Set mode to exit on error.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 21:00:46 +02:00
Fini Jastrow
1c8420c807 standardize: Fix missing READMEs
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 20:58:42 +02:00
Fini Jastrow
6e1c7f7a98 MPlus: Add missing license in patched fonts
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 20:58:42 +02:00
Fini Jastrow
ed4b2124bb MPlus: Add missing license [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 20:29:53 +02:00
Fini Jastrow
efb10b0184 Rebuild patched fonts (manually) [skip ci] 2023-04-30 17:27:13 +02:00
Fini Jastrow
624c7a5020 Update changelog
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 17:26:45 +02:00
Fini Jastrow
a9767718a2 Update FontPatcher.zip
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 17:26:45 +02:00
Fini Jastrow
0b201ce547 gotta-patch-em: Fix missing READMEs
[why]
When running without -j the README.md files are not created.

[how]
Allow scripts to be run with any PWD.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 15:41:59 +02:00
Fini Jastrow
5fad4e7270 gotta-patch-em: Fix too much purging
[why]
The destination has been purged too often, thus loosing already newly
patched fonts.

[how]
Always quote variables in shell tests :->

Fixes: 1182

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 15:41:59 +02:00
Fini Jastrow
aea8debe46 ComicShannsMono: Fix line metrics
[why]
WIN line metrics is so obviously wrong ...

[how]
Make WIN the same as TYPO.

Afterwards the baseline to baseline distance is 1200 for all 3 systems.

The fonts are generated from the *.otf_orig via make_bold script.

This was originally PR #1004

[note]
Report from font-line:

1.3.0
SHA1: 4e397869269f6a0cf2b57a874e19fe5943ef7c44

::::::::::::::::::::::::::::::::::::::::::::::::::
  Metrics
::::::::::::::::::::::::::::::::::::::::::::::::::
[head] Units per Em:   1000
[head] yMax:           1170
[head] yMin:          -596
[OS/2] CapHeight:      650
[OS/2] xHeight:        450
[OS/2] TypoAscender:   750
[OS/2] TypoDescender: -250
[OS/2] WinAscent:      1167
[OS/2] WinDescent:     564
[hhea] Ascent:         750
[hhea] Descent:       -250

[hhea] LineGap:        200
[OS/2] TypoLineGap:    200

::::::::::::::::::::::::::::::::::::::::::::::::::
  Ascent to Descent Calculations
::::::::::::::::::::::::::::::::::::::::::::::::::
[hhea] Ascent to Descent:              1000
[OS/2] TypoAscender to TypoDescender:  1000
[OS/2] WinAscent to WinDescent:        1731

::::::::::::::::::::::::::::::::::::::::::::::::::
  Delta Values
::::::::::::::::::::::::::::::::::::::::::::::::::
[hhea] Ascent to [OS/2] TypoAscender:       0
[hhea] Descent to [OS/2] TypoDescender:     0
[OS/2] WinAscent to [OS/2] TypoAscender:    417
[OS/2] WinDescent to [OS/2] TypoDescender:  314

::::::::::::::::::::::::::::::::::::::::::::::::::
  Baseline to Baseline Distances
::::::::::::::::::::::::::::::::::::::::::::::::::
hhea metrics: 1200
typo metrics: 1200
win metrics:  1731

[OS/2] fsSelection USE_TYPO_METRICS bit set: False

::::::::::::::::::::::::::::::::::::::::::::::::::
  Ratios
::::::::::::::::::::::::::::::::::::::::::::::::::
hhea metrics / UPM:  1.2
typo metrics / UPM:  1.2
win metrics  / UPM:  1.73

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 15:41:59 +02:00
Fini Jastrow
a63cb3b329 Switch from ComicMono to ComicShannsMono
[why]
The Bold font is bad?
The repo is not maintained?

[how]
The ComicShannsMono is not monospaced ... fix it.
It has Overlapping contours ... fix it.

Create a useful BOLD face.

This was originally PR #1004

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-30 15:41:59 +02:00