[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>
[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>
[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>
[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>
[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>
[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 a8b9e1daFixes: #1629 (well, not the top problem which is unfixable)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[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: #1588Fixes: #1614
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[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>
[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>
[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>
[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>
[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>
[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>
[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>
[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>
[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>
[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>