fix font fallback error message
This commit is contained in:
parent
b6054ed6bb
commit
1d683fac22
@ -48,7 +48,7 @@ class DividerDrawer(object):
|
|||||||
# then make sure that we have at least one for each type
|
# then make sure that we have at least one for each type
|
||||||
for fonttype in self.font_mapping:
|
for fonttype in self.font_mapping:
|
||||||
if not len(self.font_mapping[fonttype]):
|
if not len(self.font_mapping[fonttype]):
|
||||||
print >> sys.stderr, ("Warning, Minion Pro ttf file for {} missing from domdiv/fonts!",
|
print >> sys.stderr, ("Warning, Minion Pro ttf file for {} missing from domdiv/fonts!"
|
||||||
" Falling back on Times font for everything.").format(fonttype)
|
" Falling back on Times font for everything.").format(fonttype)
|
||||||
self.font_mapping = {'Regular': 'Times-Roman',
|
self.font_mapping = {'Regular': 'Times-Roman',
|
||||||
'Bold': 'Times-Bold',
|
'Bold': 'Times-Bold',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user