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:
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user