File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -850,13 +850,6 @@ def rebuild():
850850 break
851851 verbose .report ('loaded ttfcache file %s' % ttfcache )
852852
853- def flatten (d , path ):
854- if isinstance (d , dict ):
855- for key , val in d .items ():
856- flatten (val , path + [key ])
857- elif isinstance (d , str ):
858- print path , os .path .basename (d )
859- flatten (self .ttfdict , [])
860853 #self.ttfdict = createFontDict(self.ttffiles)
861854
862855 # Load AFM fonts for PostScript
@@ -935,14 +928,12 @@ def lookup_name(name):
935928
936929 fname = None
937930 font = fontdict
938- print font .keys ()
939931 if font .has_key (name ):
940932 font = font [name ]
941933 else :
942934 verbose .report ('\t findfont failed %(name)s' % locals (), 'debug' )
943935 return None
944936
945- print font .keys ()
946937 if font .has_key (style ):
947938 font = font [style ]
948939 elif style == 'italic' and font .has_key ('oblique' ):
You can’t perform that action at this time.
0 commit comments