mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 20:16:32 +01:00
Fix #385
This commit is contained in:
parent
b3d8351fb4
commit
c8ddf9f774
1 changed files with 4 additions and 1 deletions
|
|
@ -154,7 +154,10 @@ def get_font_families():
|
|||
ffiles = findsystem.findFonts()
|
||||
zlist = []
|
||||
for ff in ffiles:
|
||||
font = describe.openFont(ff)
|
||||
try:
|
||||
font = describe.openFont(ff)
|
||||
except: # Some font files cause ttfquery to raise an exception, in which case they are ignored
|
||||
continue
|
||||
try:
|
||||
wt, italic = describe.modifiers(font)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue