nerd-fonts/bin/scripts/lib
Fini Jastrow 7764e05764 Create new octicons.ttf (update to v18.3.0) (2/2)
This commit does the actual update of the octicons.ttf font file.
The script to update is 'generate'. It uses the mapping file from the
previous commit to create a new compatible font.

Some icons have meanwhile been dropped. We use their codepoints for new
icons.

Also fix a little bug in the GlyphInfo writer.

Following the output of the actual script run.

$ ./generate                                                                                                                                                                                                                                        feature/update-octicons ● 1 … 5 ⚑ 5 

Reading mapping file
Found 172 entries
Fetching octicons archive "v18.3.0.tar.gz"

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  550k    0  550k    0     0   504k      0 --:--:--  0:00:01 --:--:--  919k

Unpacking octicons archive
Found 576 svgs
Found 309 icons after de-duplicating

Renamed cloud-download -> download
Renamed cloud-upload -> upload
Renamed clippy -> paste
Renamed mail-read -> read
Renamed primitive-dot -> dot-fill
Renamed primitive-square -> square-fill
Renamed settings -> sliders
Renamed dashboard -> meter
Renamed trashcan -> trash
Renamed paintcan -> paintbrush

Missing octoface
Missing keyboard
Missing gist
Missing file-text
Missing file-pdf
Missing jersey
Missing radio-tower
Missing repo-force-push
Missing mail-reply
Missing arrow-small-right
Missing gist-secret
Missing no-newline
Missing arrow-small-up
Missing arrow-small-down
Missing arrow-small-left
Missing file-symlink-directory
Missing circuit-board
Missing watch
Missing text-size
Missing ellipses
Missing plus-small

Found 151 (of 172, missing 21) and new 158
Filled in missing, remaining new 137
Appended remaining new, total new mapping 309
Generating octicons.ttf with 309 glyphs
Generating GlyphInfo i_oct.sh
Finished

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-04-24 21:32:13 +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 IosevkaTerm: Prepare gh-pages for change 2023-04-05 16:04:36 +02:00
i_all.sh [ci] Bump release version 2023-01-24 15:56:06 +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-01-24 15:56:06 +00:00
i_material.sh [ci] Bump release version 2023-01-24 15:56:06 +00:00
i_md.sh [ci] Bump release version 2023-01-24 15:56:06 +00:00
i_oct.sh Create new octicons.ttf (update to v18.3.0) (2/2) 2023-04-24 21:32:13 +02: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-01-24 15:56:06 +00:00
i_weather.sh Fix some glyph names 2023-03-12 20:47:49 +01:00
README.md Fix i_cod.sh docu 2022-09-16 10:57:58 +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
template-font-preview2.svg generate-font-image-previews: Generate Symbols Only preview 2022-12-19 21:09:29 +01: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: i_cod.sh