Skip to content

Commit 76262ff

Browse files
Added FontPatcher
1 parent f990c66 commit 76262ff

File tree

92 files changed

+13966
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+13966
-0
lines changed

FontPatcher/bin/scripts/name_parser/FontnameParser.py

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

FontPatcher/bin/scripts/name_parser/FontnameTools.py

Lines changed: 448 additions & 0 deletions
Large diffs are not rendered by default.

FontPatcher/font-patcher

Lines changed: 2216 additions & 0 deletions
Large diffs are not rendered by default.

FontPatcher/glyphnames.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

FontPatcher/patch_fonts.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Create output directory if it doesn't exist
4+
mkdir -p patched-fonts/
5+
6+
# Loop through each file in the unpatched-fonts directory
7+
for font in unpatched-fonts/*; do
8+
# Run the font-patcher command on the current file
9+
python3 font-patcher --complete --outputdir patched-fonts/ "$font" --custom ~/.local/share/fonts/siji.ttf
10+
done
11+
12+
echo "All fonts have been patched successfully!"
13+

FontPatcher/readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# Nerd Fonts
3+
4+
This is font-patcher python script (and required source files) from a Nerd Fonts release.
5+
6+
## Running
7+
8+
* To execute run: `fontforge --script ./font-patcher --complete <YOUR FONT FILE>`
9+
* For more CLI options and help: `fontforge --script ./font-patcher --help`
10+
11+
## Further info
12+
13+
For more information see:
14+
* https://github.com/ryanoasis/nerd-fonts/
15+
* https://github.com/ryanoasis/nerd-fonts/releases/latest/

FontPatcher/src/glyphs/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### Contents
2+
3+
This directory contains all the glyphs (glyph sets) that the `font-patcher` puts into the fonts.
4+
5+
If a icon font here is updated, do not forget to update the database file in `bin/script/libs`.
6+
7+
The 'Seti and Original' icons (in `original-source.otf`) is automatically generated from the glyphs in `src/svgs`.
8+
Do not edit and commit changes to that font directly.
3.09 KB
Binary file not shown.

FontPatcher/src/glyphs/codicons/LICENSE.txt

Lines changed: 395 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Codicons
2+
3+
For more information have a look at the upstream website: https://github.com/microsoft/vscode-codicons
4+
5+
## Source bugs fixed
6+
7+
Glyph 0xEB40 and 0xEB41 are defective in the original font. We fixed that manually.
8+
9+
Version: 0.0.35

0 commit comments

Comments
 (0)