1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00
nerd-fonts/bin/scripts/lib
Fini Jastrow 148c288d30 fonts.json: Add pathname of reference font file for each font
[why]
For testing we might want to execute one command (e.g. font-patcher run)
once for each source font. We need to decide which of the font files is
a good choice.

[how]
Best would maybe to use the font that is used for the image previews.

We add that information for each font into the 'database'. Then we can
for example do stuff like:

while IFS= read -d $'\n' -r f; do
  ls -l ../../src/unpatched-fonts/"${f}"
done < <(jq -r '.fonts | .[] | ."imagePreviewFontSource"' lib/fonts.json)

This is already utilized for the helper tools that are hid in the
generate-font-image-previews.sh script.

Note that DaddyTimeMono and NerdFontSymbolsOnly has "--ext ttf" set in the
config, so the information provided for that fonts is wrong.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-01-15 18:31:06 +01: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 fonts.json: Add pathname of reference font file for each font 2024-01-15 18:31:06 +01:00
i_all.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
i_cod.sh Correct i_xxx.sh 2023-01-19 08:32:00 +01: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 [ci] Bump release version 2023-11-26 17:49:56 +00:00
i_material.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
i_md.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
i_oct.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
i_ple.sh Correct i_xxx.sh 2023-01-19 08:32:00 +01:00
i_pom.sh Update bash shebangs 2018-07-09 18:18:12 +03:00
i_seti.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
i_weather.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
README.md lib: Clearly mark i_material as obsolete 2023-10-03 15:12:16 +02:00
template-font-preview2.svg generate-font-image-previews: Generate Symbols Only preview 2022-12-19 21:09:29 +01: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.

  • codicons/codicon.ttf: i_cod.sh
  • devicons.ttf: i_dev.sh
  • font-awesome-extension.ttf: i_fae.sh
  • font-awesome/FontAwesome.otf: i_fa.sh
  • Unicode_IEC_symbol_font.otf: i_iec.sh
  • font-logos.ttf: i_logos.sh
  • materialdesignicons-webfont.ttf: i_material.sh removed with Nerd Fonts v3
  • materialdesign/MaterialDesignIconsDesktop.ttf : i_md.sh
  • octicons.ttf: i_oct.sh
  • PowerlineExtraSymbols.otf: i_ple.sh
  • powerline-symbols/PowerlineSymbols.otf: is a subset of PowerlineExtraSymbols
  • Pomicons.otf: i_pom.sh
  • original-source.otf: i_seti.sh
  • weather-icons/weathericons-regular-webfont.ttf: i_weather.sh