test gitattributes

This commit is contained in:
subframe7536 2024-03-08 14:44:57 +08:00
parent 1f273f6adc
commit 7c2ad751a6
2 changed files with 5 additions and 1 deletions

3
.gitattributes vendored Normal file
View file

@ -0,0 +1,3 @@
*.ttf binary
*.vfc binary
*.woff2 binary

View file

@ -164,13 +164,14 @@ if build_nerd_font:
check_font_patcher()
# get fontforge python executable path
ffpy = ""
if "Windows" in system:
ffpy = path.join(
environ.get("ProgramFiles(x86)"), "FontForgeBuilds\\bin\\ffpython.exe"
)
elif "Darwin" in system:
ffpy = "/Applications/FontForge.app/Contents/MacOS/FFPython"
if not path.exists(ffpy):
if ffpy == "" or not path.exists(ffpy):
ffpy = sys.executable
font_dir = (