예제 #1
0
파일: afm.py 프로젝트: dcorb/svgwg
 def __init__(self, afmname, glyphlistname=None, log=None):
     FontMetric.__init__(self, log)
     afmfile = open(afmname, "r")
     if glyphlistname is None:
         self.glyphList = glyphlist.defaultGlyphList
     else:
         self.glyphList = glyphlist.GlyphList(open(afmname, "r"))
     self.readFontMetrics(afmfile)
     afmfile.close()
     self.postParse()
 def __init__(self, ttfname, log=None):
     FontMetric.__init__(self, log)
     ff = open(ttfname, "rb")
     self.readFontMetrics(ff)
     ff.close()
     self.postParse()
예제 #3
0
파일: ttf.py 프로젝트: mardukbp/svgmath
 def __init__(self, ttfname, log=None):
     FontMetric.__init__(self, log)
     ff = open(ttfname, "rb")
     self.readFontMetrics(ff)
     ff.close()
     self.postParse()