Skip to content
Browse files

changed font name, familyname and fullname of the font

  • Loading branch information...
1 parent b88a0eb commit 1dfd57829d1361b35f730c4d9866768026fe71c8 nagi committed Sep 28, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 fontcreator/scripts/changefeature.py
View
7 fontcreator/scripts/changefeature.py
@@ -22,7 +22,12 @@ def featureChange(Font, Feature, ResultFont):
for l in font.gsub_lookups:
font.removeLookup(l)
font.mergeFeature(Feature)
- font.generate(ResultFont)
+ font.fullname = ResultFont
+ font.familyname = ResultFont
+ font.fontname = ResultFont
+ font.version = "7.7"
+ resultName = ResultFont.split(".ttf")[0]
+ font.generate(resultName+".ttf")
def usage():
print "\nUSAGE: ", sys.argv[0], ' font_file feature_file result_file.ttf\n'

0 comments on commit 1dfd578

Please sign in to comment.
Something went wrong with that request. Please try again.