diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-13 23:52:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-13 23:52:55 +0000 |
commit | c0e744b6e1d5e6201cbf207c841c34e0a1fb5ea9 (patch) | |
tree | 6a66edc3c9201865793db92bcba872f0827c3309 /Master/texmf-dist/doc/fonts/punknova/tools/build.py | |
parent | 58406f68cdd33ac3beba54a90ee9b9950f8fcbff (diff) |
punknova 1.002 (13sep10)
git-svn-id: svn://tug.org/texlive/trunk@19714 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/punknova/tools/build.py')
-rw-r--r-- | Master/texmf-dist/doc/fonts/punknova/tools/build.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/fonts/punknova/tools/build.py b/Master/texmf-dist/doc/fonts/punknova/tools/build.py index 0c805e945a5..f2f1f681770 100644 --- a/Master/texmf-dist/doc/fonts/punknova/tools/build.py +++ b/Master/texmf-dist/doc/fonts/punknova/tools/build.py @@ -116,10 +116,13 @@ def greek_caps(font, instances): get_alt(font.createMappedChar(name).unicode, name)) def autowidth(font): - print "Auto setting side bearings..." + print "Auto spacing..." font.selection.all() - font.autoWidth(70, 10, 40) + if font.fullname.find("Slanted"): + font.autoWidth(40, 0, 20) + else: + font.autoWidth(70, 10, 40) font.round() # this one is needed to make simplify more reliable font.simplify() font.removeOverlap() @@ -181,7 +184,7 @@ if __name__ == "__main__": font = fontforge.font() if style != "Regular": - font.fontname = "PunkNova-%s" % style + font.fontname = "PunkNova-%s" % style.replace(" ", "") font.fullname = "Punk Nova %s" % style else: font.fontname = "PunkNova" @@ -189,11 +192,11 @@ if __name__ == "__main__": font.familyname = "Punk Nova" font.weight = style - font.version = "001.000" + font.version = "001.002" font.encoding = "Unicode" filename = "%s-%s.otf" %(font.familyname.replace(" ", "").lower(), - style.lower()) + style.replace(" ", "").lower()) font.copyright = "Unlimited copying and redistribution of this file are\ permitted as long as this file is not modified. Modifications are permitted,\ |