mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
6b694fe130
commit
f4f6e5655a
@ -167,6 +167,7 @@ class Fonts(object):
|
|||||||
fonts = font_scanner.alt_fonts_for_family(ff)
|
fonts = font_scanner.alt_fonts_for_family(ff)
|
||||||
except NoFonts:
|
except NoFonts:
|
||||||
return
|
return
|
||||||
|
if fonts:
|
||||||
font = get_best_font(fonts, css.get('font-style', 'normal'), css.get('font-stretch', 'normal'))
|
font = get_best_font(fonts, css.get('font-style', 'normal'), css.get('font-stretch', 'normal'))
|
||||||
if font is not None:
|
if font is not None:
|
||||||
rest = ', '.join(css['font-family'].split(',')[1:])
|
rest = ', '.join(css['font-family'].split(',')[1:])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user