nerd-fonts/generate-webfonts-old.sh
Fini Jastrow 01af9e8ab5 Update cheat sheet WITH removed icons
Update the cheat sheet to v3.0.0 but also show the removed icons of
v2.3.3. That style is .nfold (read: nf-old) and it is just hacked in.
I believe it can be removed later on, with 3.1.0 or something at least.

We also need the old (removed) icons as a font to display them despite
being removed. A small helper script 'archives' just the dropped glyphs
into a new webfont.
The script can be removed afterwards, this is a single run, archiving
the dropped after v2.3.3 icons.

See pairing commit in master branch:
    Date:   Wed May 3 17:54:44 2023 +0200
    generate-css: Create cheat sheet with removed icons

[note]
Also remove unused `nerd-fonts-generated.css`, wich confuses me every
time. It's sufficient to have it in the master branch for people, we do
not use it here.

f
2023-05-04 11:24:19 +02:00

10 lines
420 B
Bash
Executable file

#!/usr/bin/env bash
# See commit message that introduces this file :-}
# assets/fonts/Symbols-2048-em Nerd Font Complete v233.woff2
font_src="Symbols-2048-em Nerd Font Complete.woff2"
font_dest="Symbols-2048-em Nerd Font Complete v233.woff2"
webfontdir="assets/fonts"
fontforge -lang=ff -c "Open(\"${webfontdir}/${font_src}\"); Select(0xf500, 0xffff); SelectInvert(); Cut(); Generate(\"${webfontdir}/${font_dest}\")"