mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Log when loading a font fails
This commit is contained in:
parent
6f18070861
commit
7527773f07
@ -276,6 +276,7 @@ class PdfEngine(QPaintEngine):
|
||||
try:
|
||||
self.fonts[gi.name] = metrics = self.create_sfnt(text_item)
|
||||
except UnsupportedFont:
|
||||
self.debug('Failed to load font: %s, drawing text as outlines...' % names)
|
||||
return super(PdfEngine, self).drawTextItem(point, text_item)
|
||||
for glyph_id in gi.indices:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user