Skip to content

Instantly share code, notes, and snippets.

@GarconsdeCrystal
Forked from audreyt/FontForge.app.sh
Created October 23, 2021 14:10
Show Gist options
  • Save GarconsdeCrystal/5338e0036ccc3e3393ff61f3b2acfd52 to your computer and use it in GitHub Desktop.
Save GarconsdeCrystal/5338e0036ccc3e3393ff61f3b2acfd52 to your computer and use it in GitHub Desktop.
SourceHanSansTWHK-Normal subsetting example
#!/usr/bin/env PYTHONHOME=/Applications/FontForge.app/Contents/Resources/opt/local/bin/Python.framework.2.7 DISPLAY=:0 /Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge -script
Open("/Users/audreyt/Downloads/SourceHanSansTWHK-1.000/SourceHanSansTWHK-Normal.otf")
Select(0u3000)
SelectMore(0u3001)
SelectMore(0u3002)
SelectInvert()
Clear()
Generate("SourceHanSansTWHK-Normal-Subset.ttf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment