Getting glyphs dir
Closed this issue · 3 comments
Requirements
- I have searched the issues for my request and found nothing related and/or helpful
- I have searched the FAQ for help
- I have searched the Wiki for help
Is your feature request related to a problem? Please describe.
Yes
Describe the solution you'd like
I need to maintain the AUR package nerd-fonts-noto-sans-mono-extended.
This package is based on three sources:
- NotoSansMono: that I will take from "https://github.com/notofonts/latin-greek-cyrillic/releases/download/NotoSansMono-v2.014/NotoSansMono-v2.014.zip"
- Your font-patcher: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FontPatcher.zip
- src/glyphs content: https://github.com/ryanoasis/nerd-fonts/tree/master/src/glyphs
With the latest version I cannot retrieve the src/glyphs
subdirectory by svn
and I'm forced to use git
. It means that the user that wants to install this package, needs to clone the entire nerd-fonts
repository that needs time and GBs of space.
A good solution could be create a specific release or branch for src/glyphs to be patched, so they can be retrieved by git without pulling the entire repository.
Hej @D3vil0p3r
I do not really understand why you need the src/glyphs
subdir when you already have the FontPatcher.zip
?
$ unzip -l FontPatcher.zip
Archive: FontPatcher.zip
Length Date Time Name
--------- ---------- ----- ----
0 2024-05-06 22:43 src/glyphs/
378 2024-05-06 22:43 src/glyphs/README.md
0 2024-05-06 22:43 src/glyphs/devicons/
374 2024-05-06 22:43 src/glyphs/devicons/README.md
125484 2024-05-06 22:43 src/glyphs/devicons/devicons_orig.ttf
123276 2024-05-06 22:43 src/glyphs/devicons/devicons.ttf
0 2024-05-06 22:43 src/glyphs/codicons/
19047 2024-05-06 22:43 src/glyphs/codicons/LICENSE.txt
239 2024-05-06 22:43 src/glyphs/codicons/README.md
76140 2024-05-06 22:43 src/glyphs/codicons/codicon_orig.ttf
70048 2024-05-06 22:43 src/glyphs/codicons/codicon.ttf
0 2024-05-06 22:43 src/glyphs/font-awesome/
7427 2024-05-06 22:43 src/glyphs/font-awesome/LICENSE.txt
419 2024-05-06 22:43 src/glyphs/font-awesome/README.md
976188 2024-05-06 22:43 src/glyphs/font-awesome/FontAwesome.otf
4040 2024-05-06 22:43 src/glyphs/font-awesome/generate
85233 2024-05-06 22:43 src/glyphs/font-awesome/remix_mapping
7872 2024-05-06 22:43 src/glyphs/font-awesome/remix
3046 2024-05-06 22:43 src/glyphs/font-awesome/analyze
67575 2024-05-06 22:43 src/glyphs/font-awesome/mapping
0 2024-05-06 22:43 src/glyphs/weather-icons/
59071 2024-05-06 22:43 src/glyphs/weather-icons/OFL-FAQ.txt
4692 2024-05-06 22:43 src/glyphs/weather-icons/OFL.txt
99564 2024-05-06 22:43 src/glyphs/weather-icons/weathericons-regular-webfont.ttf
0 2024-05-06 22:43 src/glyphs/pomicons/
4395 2024-05-06 22:43 src/glyphs/pomicons/LICENSE
127 2024-05-06 22:43 src/glyphs/pomicons/README.md
4028 2024-05-06 22:43 src/glyphs/pomicons/Pomicons.otf
0 2024-05-06 22:43 src/glyphs/materialdesign/
992 2024-05-06 22:43 src/glyphs/materialdesign/LICENSE
1212 2024-05-06 22:43 src/glyphs/materialdesign/README.md
1109996 2024-05-06 22:43 src/glyphs/materialdesign/MaterialDesignIconsDesktop.ttf
302940 2024-05-06 22:43 src/glyphs/materialdesign/materialdesignicons-webfont.ttf
1440704 2024-05-06 22:43 src/glyphs/materialdesign/MaterialDesignIconsDesktop_orig.ttf
49316 2024-05-06 22:43 src/glyphs/font-awesome-extension.ttf
163320 2024-05-06 22:43 src/glyphs/original-source.otf
3168 2024-05-06 22:43 src/glyphs/Unicode_IEC_symbol_font.otf
0 2024-05-06 22:43 src/glyphs/powerline-extra/
1072 2024-05-06 22:43 src/glyphs/powerline-extra/LICENSE
51036 2024-05-06 22:43 src/glyphs/powerline-extra/PowerlineExtraSymbols.otf
511 2024-05-06 22:43 src/glyphs/powerline-extra/README.md
15109 2024-05-06 22:43 src/glyphs/extraglyphs.sfd
45772 2024-05-06 22:43 src/glyphs/font-logos.ttf
0 2024-05-06 22:43 src/glyphs/powerline-symbols/
1132 2024-05-06 22:43 src/glyphs/powerline-symbols/LICENSE.txt
250 2024-05-06 22:43 src/glyphs/powerline-symbols/README.md
2224 2024-05-06 22:43 src/glyphs/powerline-symbols/PowerlineSymbols.otf
0 2024-05-06 22:43 src/glyphs/octicons/
960 2024-05-06 22:43 src/glyphs/octicons/file-symlink-directory-24.svg
1068 2024-05-06 22:43 src/glyphs/octicons/LICENSE
726 2024-05-06 22:43 src/glyphs/octicons/analyze_octicons
5843 2024-05-06 22:43 src/glyphs/octicons/generate
845 2024-05-06 22:43 src/glyphs/octicons/file-symlink-directory-16.svg
76796 2024-05-06 22:43 src/glyphs/octicons/octicons.ttf
6299 2024-05-06 22:43 src/glyphs/octicons/mapping
19071 2024-05-06 22:42 bin/scripts/name_parser/FontnameTools.py
19065 2024-05-06 22:42 bin/scripts/name_parser/FontnameParser.py
118868 2024-05-06 22:42 font-patcher
1103 2024-05-06 22:43 readme.md
--------- -------
5178061 59 files
Ah I see you want to create a package from a self-patched font.
build() {
# patch fonts
mkdir -p "$srcdir/patched"
printf "%b" "\e[1;33m==> WARNING: \e[0mNow patching all fonts. This will take very long...\n"
# patch fonts quiet with complete single-width glyphs
parallel -j$(nproc) python font-patcher --glyphdir "$srcdir/glyphs/" -q -c -s {} -out "$srcdir/patched" ::: "$srcdir/NotoSansMono"/*.ttf
}
The FontPatcher.zip
contains all you need, you do not need to fetch the icons manually in addition.
And as a hint - but maybe it is too late now to change that - for the extended Noto you should have probably set some other naming scheme via --makegroups n
with n
> 1.
$ cat src/unpatched-fonts/Noto/config.cfg
[Config]
commandline: --makegroups 5