This commit is contained in:
Kovid Goyal 2016-11-14 14:02:14 +05:30
parent 6b694fe130
commit f4f6e5655a

View File

@ -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:])