1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00
nerd-fonts/bin/scripts
Fini Jastrow be48f93710 name-parser: Fix style names two-language-mode
[why]
The code needlessly create two language ID17 even if ID16 is only one
entry / one languange. ID17 is always the same for both languages.

This is an example for the wrong way:

======== BlexMonoNerdFont-Text.ttf ========
SFNT Fullname      ID 4     BlexMono Nerd Font Text
SFNT Family        ID 1     BlexMono Nerd Font Text
SFNT SubFamily     ID 2     Regular
SFNT Pref Family   ID 16    BlexMono Nerd Font
SFNT Pref Styles   ID 17    ('Text', 'Text')
SFNT PS Name       ID 6     BlexMonoNF-Text
SFNT Compatible    ID 18    -
SFNT CID findfont  ID 20    -
SFNT WWS Family    ID 21    -
SFNT WWS SubFamily ID 22    -
PS fontname                 BlexMonoNF-Text
PS fullname                 BlexMono Nerd Font Text
PS familyname               BlexMono Nerd Font Text
fondname                    None

This is an example for the correct way (two ID17 when we have two ID16):

======== NotoSerifCondensedNerdFont-BlackItalic.ttf ========
SFNT Fullname      ID 4     NotoSerif Condensed NF Black Italic
SFNT Family        ID 1     NotoSerif Cond NF Black
SFNT SubFamily     ID 2     Italic
SFNT Pref Family   ID 16    ('NotoSerif Condensed Nerd Font', 'NotoSerif Cond NF')
SFNT Pref Styles   ID 17    ('Black Italic', 'Black Italic')
SFNT PS Name       ID 6     NotoSerifCondensedNF-BlackItalic
SFNT Compatible    ID 18    -
SFNT CID findfont  ID 20    -
SFNT WWS Family    ID 21    -
SFNT WWS SubFamily ID 22    -
PS fontname                 NotoSerifCondensedNF-BlackItalic
PS fullname                 NotoSerif Condensed NF Black Italic
PS familyname               NotoSerif Cond NF Black
fondname                    None

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-03 16:18:46 +02:00
..
data cheat-sheet: Add autofocus on load to search input text 2024-03-25 22:56:39 +01:00
lib Update Font Logos to 1.2.0 2024-04-02 20:38:36 +02:00
name_parser name-parser: Fix style names two-language-mode 2024-04-03 16:18:46 +02:00
archive-font-patcher.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
archive-fonts.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
docker-entrypoint.sh docker: Run parallel by default 2024-02-05 18:17:20 +01:00
fetch-archives.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
fpfix.py add combined prefix to fpfix.py 2017-05-19 03:11:58 -05:00
generate-casks.sh casks: Fix tap command and repo links 2024-03-27 08:41:45 +01:00
generate-css.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
generate-extraglyphs.py [ci] Bump release version 2023-11-26 17:49:56 +00:00
generate-font-image-previews.sh fonts.json: Add pathname of reference font file for each font 2024-01-15 18:31:06 +01:00
generate-fontconfig.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
generate-glyph-info-from-set.py generate-glyph-info: Fix double entries 2024-03-17 14:24:43 +01:00
generate-original-source.py [ci] Bump release version 2023-11-26 17:49:56 +00:00
generate-release-summary.sh Add small tool to create release artefact table 2023-11-21 15:02:39 +01:00
generate-sample-set.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
generate-webfonts.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
get-font-names-from-json.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
gotta-patch-em-all-font-patcher!.sh gotta-patch-em: Require Bash version 4+ 2024-03-16 01:33:55 +01:00
optimize-original-source.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
README.md Add another test for Powerline glyphs 2024-03-29 13:16:02 +01:00
release.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
standardize-and-complete-readmes.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
test-fonts.sh Add inverse powerline arrow heads 2024-03-29 14:10:31 +01:00
test-powerlines.sh Add inverse powerline arrow heads 2024-03-29 14:10:31 +01:00
test-vertical-lines.sh tests: Add new glyphs to vertical lines test 2024-03-29 14:43:37 +01:00
update-all-contributors-website.py Improve created Contributors web-page 2023-11-01 17:20:38 +01:00
update-gitignore.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00
version-bump.sh [ci] Bump release version 2023-11-26 17:49:56 +00:00

Contents

Note: Usually you need to call the scripts in this directory while actually being in this directory (i.e. pwd = .../nerd-fonts/bin/scripts).

  • archive-font-patcher.sh: Archives the font patcher script and subscripts and the required source glyph files [1]
  • archive-fonts.sh: Creates the release zip file of one or more font(s) from existing patched-fonts/ content [1]
  • data/: Contains plain text files used to generate the CSS and cheat sheet files
  • data/sankey/: Contains instructions on how to create the sankey glyph table manually [3]
  • docker-entrypoint.sh: This script is packaged into the docker container and is usually used to start patching [2]
  • fetch-archives.sh: Script to download the release zip archives [6]
  • fpfix.py: Can be used to set isFixedPitch property in a font [x]
  • generate-casks.sh: Generates cask files for fonts from data in archives/ [6]
  • generate-css.sh: Generates the Nerd Fonts CCS, which can be used to access the glyphs on a web page, and the Cheat Sheet [1]
  • generate-extraglyphs.py: Generates extraglyphs.sfd from Hack Regular [4]
  • generate-fontconfig.sh: Generates font configuration to enable use of unpatched fonts with Symbols Only Nerd Font [1]
  • generate-font-image-previews.sh: Generates the preview images for nerdfonts.com (i.e. gh-pages) [3]
  • generate-glyph-info-from-set.py: Generate the i_xxx.sh file from a glyph source (font) file, if the glyphs are named correctly [4]
  • generate-original-source.py: Generate original-source.otf from single glyph svgs. [5]
  • generate-release-summary.sh: Helper to generate the release table with zip and xz [3]
  • generate-sample-set.sh: Generate one patched font file from each source font (for manual checks) [4]
  • generate-webfonts.sh: Generate woff and woff2 font files from the SymbolsOnly font (for the gh-pages) [1]
  • get-font-names-from-json.sh: Helper to setup the CI font matrix from data/fonts.json [1]
  • gotta-patch-em-all-font-patcher!.sh: Patch one or more fonts 'complete' with and without mono and with and without windows compat [1]
  • Hack/: Special additional post patching script for Hack, invoked via Hack's config.cfg (not used when self-patching)
  • lib/: See its own README
  • name_parser/: Suite to set up sane Family and SubFamily names, used by font-patcher (on demand)
  • optimize-original-source.sh: Run all icons in src/svgs through inkscape to simplify (remove nodes and edges) [5]
  • release.sh: Rough process how a release is created, not used (see .github/workflows/release.yml)
  • standardize-and-complete-readmes.sh: Used by gotta-patch-em-all-font-patcher!.sh
  • test-fonts.sh: Print-to-debug all glyphs we patch in [4]
  • test-powerlines.sh: Print-to-debug powerline examples [4]
  • test-vertical-lines.sh: Print-to-debug powerline examples [4]
  • update-all-contributors-website.py: Update the contributors page on nerdfonts.com (i.e. gh-pages) [7]
  • update-gitignore.sh: Correct gitignore file for not-released-in-repo fonts [8]
  • version-bump.sh: Change version number in all scripts on a new release [1]

[1] Used by CI (github release workflow) [2] Used by CI (github docker-release workflow) [3] To be used manually (sigh) [4] To be used manually [5] Used by CI (github packsvgs workflow) [6] Used by CI (github casks workflow) [7] Used by CI (github contributors workflow) [8] Used by CI (github fontjson workflow)