Created
February 8, 2013 09:24
-
-
Save santhoshtr/4737656 to your computer and use it in GitHub Desktop.
Generates an adobe feature file for the current font. If a lookup-name is specified then only data for that lookup will be generated.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import fontforge | |
if __name__ == "__main__": | |
if len(sys.argv) < 3: | |
print "USAGE: python generate_featurefile.py <font/sfd file> <featurefile>" | |
else: | |
font = fontforge.open(sys.argv[1]) | |
font.generateFeatureFile(sys.argv[2]) | |
font.close() | |
print "[OK] Font featurefile generated" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment