1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-06 21:49:40 +02:00
nerd-fonts/bin/scripts/lib
Fini Jastrow 3444b5755f generate-font-image-previews: Fix and Refactor [skip-ci]
[why]
The script is not running with current (i.e. year 2022) release versions
of Inkscape.

The script does not warn if a font is not installed (and creates a
garbage preview instead).

[how]
Rewrite the script that is uses Inkscape actions instead of verbs. Verbs
are already removed in Inkscape HEAD.

Check if needed font is indeed installed.

Do not generate useless Symbols Only font preview (it needs a specific
different one, I suppose).

Disable `svgo`. Maybe we should generate PNGs instead?

Change path for created images, so that it is already correct for the
gh-pages and we could use the github-pages-deploy-action to publish them.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-09-13 12:13:16 +02:00
..
fonts-small-subset.json Tweak RC for less fonts and try wildcard pattern for artifact upload, comments out commit for now 2022-01-01 07:50:03 -08:00
fonts.json generate-font-image-previews: Fix and Refactor [skip-ci] 2022-09-13 12:13:16 +02:00
i_all.sh Rename 'Font Linux' to 'Font Logos' 2022-09-13 08:05:14 +02:00
i_cod.sh Document and update cheat sheet data 2022-09-11 16:41:12 +02:00
i_dev.sh Update bash shebangs 2018-07-09 18:18:12 +03:00
i_fa.sh Update bash shebangs 2018-07-09 18:18:12 +03:00
i_fae.sh Cheatsheet correction (fixes #285) 2019-08-15 14:41:20 -07:00
i_iec.sh Update bash shebangs 2018-07-09 18:18:12 +03:00
i_logos.sh Rename 'Font Linux' to 'Font Logos' 2022-09-13 08:05:14 +02:00
i_material.sh Document and update cheat sheet data 2022-09-11 16:41:12 +02:00
i_oct.sh Update bash shebangs 2018-07-09 18:18:12 +03:00
i_ple.sh Update bash shebangs 2018-07-09 18:18:12 +03:00
i_pom.sh Update bash shebangs 2018-07-09 18:18:12 +03:00
i_seti.sh [ci] Bump release version 2022-09-07 08:05:53 +00:00
i_weather.sh Document and update cheat sheet data 2022-09-11 16:41:12 +02:00
inkscape-template-font-preview.svg Adds base template svg used by script to generate font previews 2019-08-27 14:02:52 -07:00
README.md Document and update cheat sheet data 2022-09-11 16:41:12 +02:00
template-font-preview.svg Adds regular (non Inkscape) template svg used by script to generate font previews 2019-09-05 14:34:00 -07:00

Contents

This directory contains

  • List of all source fonts to patch with CI
  • List of all glyphs for the cheat-sheet

Source fonts

The file fonts.json is used by the github CI to patch all fonts and create all the release zip archives. The 'font matrix' is derived from it.

get-font-names-from-json.sh is a small helper to set the matrix up.

Cheat Sheet

The glyphs get their names through the individual (per glyph source) i_*.sh files in this directory. Only glyphs listed here could be found with the cheat sheet.

  • original-source.otf: i_seti.sh
  • devicons.ttf: i_dev.sh
  • powerline-symbols/PowerlineSymbols.otf: is a subset of PowerlineExtraSymbols
  • PowerlineExtraSymbols.otf: i_ple.sh
  • Pomicons.otf: i_pom.sh
  • font-awesome/FontAwesome.otf: i_fa.sh
  • font-awesome-extension.ttf: i_fae.sh
  • Unicode_IEC_symbol_font.otf: i_iec.sh
  • materialdesignicons-webfont.ttf: i_material.sh
  • weather-icons/weathericons-regular-webfont.ttf: i_weather.sh
  • font-logos.ttf: i_linux.sh
  • octicons.ttf: i_oct.sh
  • codicons/codicon.ttf: missing