Log when loading a font fails

This commit is contained in:
Kovid Goyal 2017-01-17 18:24:33 +05:30
parent 6f18070861
commit 7527773f07

View File

@ -276,6 +276,7 @@ class PdfEngine(QPaintEngine):
try: try:
self.fonts[gi.name] = metrics = self.create_sfnt(text_item) self.fonts[gi.name] = metrics = self.create_sfnt(text_item)
except UnsupportedFont: except UnsupportedFont:
self.debug('Failed to load font: %s, drawing text as outlines...' % names)
return super(PdfEngine, self).drawTextItem(point, text_item) return super(PdfEngine, self).drawTextItem(point, text_item)
for glyph_id in gi.indices: for glyph_id in gi.indices:
try: try: