Suggest modifying the build() command's last line to:
- Not output stderr to /dev/null
- Use
fontforge -script
instead ofpython
to call the font patcher
I had to do this in order to get it to build.
Git Clone URL: | https://aur.archlinux.org/nerd-fonts-sf-mono.git (read-only, click to copy) |
---|---|
Package Base: | nerd-fonts-sf-mono |
Description: | Monospaced variant of San Francisco. Sourced directly from Apple, patched with the Nerd Fonts Patcher |
Upstream URL: | https://developer.apple.com/fonts/ |
Keywords: | apple font fonts francisco mono monospace nerd nerd-fonts nerdfonts otf san sanfrancisco sf |
Licenses: | custom |
Conflicts: | nerd-fonts-sf-mono |
Provides: | nerd-fonts-sf-mono |
Submitter: | D3SOX |
Maintainer: | D3SOX |
Last Packager: | D3SOX |
Votes: | 12 |
Popularity: | 0.27 |
First Submitted: | 2020-09-23 11:59 (UTC) |
Last Updated: | 2024-11-20 07:54 (UTC) |
Suggest modifying the build() command's last line to:
fontforge -script
instead of python
to call the font patcherI had to do this in order to get it to build.
@D3SOX font patching unfortunately did not work for me when building the package without an AUR helper
@ripsivis weird, wasn't able to replicate. Performance wise it's about the same my machine.
For some reason, parallel command no longer works. All I know is that the command exits with 255.
But we can use xargs for a similar approach, just replace the parallel's line with this:
ls "$srcdir/Library/Fonts"/*.otf | xargs -P $(nproc) -I {} python "$srcdir/font-patcher" -q -c -s {} -out "$srcdir/patched" &> /dev/null
or just apply this patch: https://gist.github.com/onurmercury/507628bf575080a4c729b5cedb32e6b0
@sentientmachin3 Hm ok maybe yay has some bug when checking out via Subversion. I could change how it fetches the glyphs but I don't think it's worth the hassle. If it works when building it manually via makepkg it should work with yay too so I see the problem on yay's side (or some sort of setup issue with yay on your machine)
@D3SOX I built it with paru as well. I don't know what changes, but it works. Yay is still failing.
@sentientmachin3 I just successfully built the package again (using paru but that shouldn't matter).
The PowerlineSymbols.otf
is definitely inside src/glyphs/powerline-symbols/
and the one in src/glyphs/
is named PowerlineExtraSymbols.otf
@D3SOX apparently the build process is looking for PowerlineSymbols.otf
in src/glyphs/powerline-symbols/
, but I found no powerline-symbols
folder, instead my file is in src/glyphs/
.
@sentientmachin3 Try a clean build with yay or rm -rf /home/user/.cache/yay/nerd-fonts-sf-mono
before trying to build it again
@D3SOX @hendry the error I'm getting related to @hendry's issue is the following:
Nerd Fonts: Can not find symbol source for 'Powerline Symbols'
(i.e. /home/user/.cache/yay/nerd-fonts-sf-mono/src/glyphs/powerline-symbols/PowerlineSymbols.otf
Pinned Comments
D3SOX commented on 2021-09-28 07:25 (UTC)
I'm using a change detection to see when Apple updates the font. If the build doesn't work because of a checksum failure for
SF-Mono.dmg
please flag it out-of-date.