mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 12:13:11 +02:00
...
This commit is contained in:
parent
587d83b0d1
commit
0ad58ef8a6
1 changed files with 1 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ def mobimlize_elem(self, elem, stylizer, bstate, istates,
|
|||
istate.fgcolor = style['color']
|
||||
istate.strikethrough = style.effective_text_decoration == 'line-through'
|
||||
istate.underline = style.effective_text_decoration == 'underline'
|
||||
ff = style['font-family'].lower() if style['font-family'] else ''
|
||||
ff = style['font-family'].lower() if hasattr(style['font-family'], 'lower') else ''
|
||||
if 'monospace' in ff or 'courier' in ff or ff.endswith(' mono'):
|
||||
istate.family = 'monospace'
|
||||
elif ('sans-serif' in ff or 'sansserif' in ff or 'verdana' in ff or
|
||||
|
|
|
|||
Loading…
Reference in a new issue