nerd-fonts/bin/scripts
Fini Jastrow 090fbbeebe Sunset in-repo releases
[why]
We struggle with the pack-committing of patched fonts to the repository
on release. This makes our repo grow extremely big. It would be better
to just use release artifacts for the releases and not commit any
patched font back.
There were different approaches discussed, but the problem remains that
I personally have no rights to implement anything of that - neither can
I force push to the default branch, nor can I create new repos in the
organization.

[how]
To make it still possible to add new fonts without a repo size
explosion we do not release NEW fonts back to the repository as commits,
but old fonts are handled as before.
NEW fonts:
 * have a new property set in the fonts.yaml 'database'
 * are released as release artifact via release workflow (but not
   committed back)
 * get a readme in the patched_fonts/ directory that points to the
   release artifact page

The solution is not ideal, but for sure better than not adding any fonts
anymore or having the repo grow in size faster and faster.

At some point in time I would like to phase out all in-repo releases,
also for OLD fonts.

This scheme has been (manually) used / introduced for Intel One.
With this change the .gitignore file is automatically adapted to any new
font that is added with the repoRelease flag set to false (which should
be the default for any added font from now on).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-09-27 11:20:36 +02:00
..
data generate-css: Adapt text 2023-05-30 19:41:34 +02:00
lib Sunset in-repo releases 2023-09-27 11:20:36 +02:00
name_parser name-parser: Unify quotes used for strings 2023-09-27 05:46:33 +02:00
archive-font-patcher.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
archive-fonts.sh archive-fonts: Unify README handling 2023-07-15 12:00:52 +02:00
docker-entrypoint.sh docker: Transport return code to outside 2023-07-11 22:34:10 +02:00
fetch-archives.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
fpfix.py add combined prefix to fpfix.py 2017-05-19 03:11:58 -05:00
generate-casks.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
generate-css.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
generate-extraglyphs.py [ci] Bump release version 2023-06-04 20:32:30 +00:00
generate-font-image-previews.sh generate-font-image-previews: Update Inkscape calls 2023-07-26 15:02:27 +02:00
generate-fontconfig.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
generate-glyph-info-from-set.py [ci] Bump release version 2023-06-04 20:32:30 +00:00
generate-original-source.py [ci] Bump release version 2023-06-04 20:32:30 +00:00
generate-sample-set.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
generate-webfonts.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
get-font-names-from-json.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
gotta-patch-em-all-font-patcher!.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
optimize-original-source.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
README.md Sunset in-repo releases 2023-09-27 11:20:36 +02:00
release.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
standardize-and-complete-readmes.sh standardize-and-complete-readmes: Fix broken links 2023-07-26 15:55:15 +02:00
test-fonts.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
test-powerlines.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
tests.sh [ci] Bump release version 2023-06-04 20:32:30 +00:00
update-all-contributors-website.py Rewrite update-contributors 2023-01-27 15:19:20 +01:00
update-gitignore.sh Sunset in-repo releases 2023-09-27 11:20:36 +02:00
version-bump.sh [ci] Bump release version 2023-06-04 20:32:30 +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-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]
  • tests.sh: Create some font usage gif movie? [x]
  • 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) [x] Probably not used by anything