mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 21:03:43 +02:00
Log when loading a font fails
This commit is contained in:
parent
6f18070861
commit
7527773f07
1 changed files with 1 additions and 0 deletions
|
|
@ -276,6 +276,7 @@ def drawTextItem(self, point, text_item):
|
|||
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…
Reference in a new issue