[why]
When people want to use the Symbols-Only webfont that we use for the
website directly (without hosting the css/woff files themselves) they
probably need a stub to access our css.
I have no clue what consequences this has for our traffic, and probably
we need to remove this if problems come up.
Origin of this is a request via gitter:
Mikle-Bond (Michael)
Hello! I have a request about webfont. Can you make the
nerd-fonts-generated{,.min}.css files available via
https://www.nerdfonts.com/assets/css/ ? So that users could
reference them directly and have SymbolsOnly variant of the
font with classes names.
I have found this [not linked here] message from a month ago,
[in fact 2 years and 1 month] and my request could help that
person too. They were having problem, as nerd-fonts-generated.css
is only available via githubusercontent.com at the moment, and
it doesn't point correctly to the font file. But it does so for
nerdfonts.com website, after it gets bundled into combo.css.
[how]
Make nerd-fonts-generated.min.css availabe directly as
https://www.nerdfonts.com/assets/css/webfont.css.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
After the glyph name fix done with commit
7e2d38b55 Fix some glyph names
we need to update the actual cheat sheet and CSS files.
[how]
Manually commit data from `generate-css.sh` run here.
Related: #1147
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The (old) Material Design Icons are to be removed.
We should communicate that on the Cheat Sheet.
[how]
Add class that displays a red top-right triangle with text.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
A lot of the previews used some fallback font.
[how]
The generator script has been fixed in 'master'.
Now pushing the changed previews here.
Note: Because of some name changes we need to update the fonts.json too.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
Update from main repo to gh-pages was broken or is manual.
Changed update script.
[how]
Let script (new) run manually. To see if it works.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
Makes it even more easy to use, as the '\u' prefix seems to be quite
standard, e.g. for 'echo', 'printf', and even RFC4627.
Reference: #1059
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
We removed the functionality with the previous commit and replaced it
with 'copy the UTF16 code' (needed for codepoints > u_FFFF).
But people might want to have the possibility to easily (by click) copy
the codepoint hex number.
[how]
Add highlighting on the hex number and allow clicking to copy the value.
[note]
The tooltip will be added in the cheat-sheet generator.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
For people using JSON they need the UTF16 codes.
While 4-digit values are no problem the new Material Design Icons code
can not be used.
[how]
Copy the UTF16 values instead of the full codepoint value (as hex
string).
Fixes: #1059
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
When we do not rename a font that has the RFN flag set we do not list
the font as RFN-font.
This is for example the case with mononoki since the last commit.
[how]
Show the source font name not only when it differs but also when it is a
RFN.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The Symbols Only font is listed two times on the downloads page.
It has no preview (and even no real visible name).
[how]
After changing generate-font-image-previews.sh [1] we can now generate a
preview for the Symbols Only font. Put it here manually, with up to date
fonts.json database file.
[1]:
0e434c2b9 generate-font-image-previews: Fit svg canvas to drawing [skip ci]
2597b4ef3 generate-font-image-previews: Generate Symbols Only preview
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The icon sizes (in EM) changed a bit, so we need to decrease the display
size to make the icon not-overlap the text.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
They are needed for the updates cheat sheet to display the new icons :-)
[how]
Manual run of new script `generate-webfonts.sh` which is now added to
the release workflow.
[note]
Also remove ttf version of the font, as it is used nowhere on our page.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
f
[why]
The automatic release process updates the CSS files, but not the Cheat
Sheet file. This has been fixed by commit
3de381d5a CI: Automatically deploy Cheat Sheet
[how]
Do this one more time manually (do not want to trigger a release
workflow).
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
Sometimes we change the font name just because ... reasons, without
having being oblieged to do that because of a reserved font name (RFN)
clause.
This is for example the case with M+ that we rename to MPlus (well, it
has both names in principle, but the human readable name in the original
fonts in M+).
Another is "Go Mono" that we rename to "Go-Mono" for whatever reason.
This would also have been needed when `Fira Code` was still RFN and we
got the special permission to patch it without dropping `Fira Code` from
the name (see [1]), to create the correct tagged list.
But Fira Code dropped the RFN some time ago, so no need for this font
anymore.
This also prevents our own Symbols Only fonts to be listed as having RFN.
[how]
But an explicit field into the fonts.json database if the font has an
RFN or not, and decide upon that.
[1] https://github.com/tonsky/FiraCode/issues/767
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
We detect if a font has a reserved font name RFN by comparing unpatched
and patched names.
In the patched names we remove blanks from the original name, example
"BigBlue Terminal" -> "BigBlueTerminal Nerd Font"
In the fonts.json database we store "BigBlueTerminal" as `.patchedName`.
For our RFN detection we need to set the `.unpatchedName` also to
"BigBlueTerminal", which is strictly speaking not correct.
[how]
Compare `.unpatchedName` and `.patchedName` without taking the blanks into
account: Remove them before comparing.
[note]
This is needed to finally have the correct original names in the
database, which will be used for the Casks creation.
[note]
Also unify the shell commands (remove whitespaces).
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>