mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
587d83b0d1
commit
0ad58ef8a6
@ -382,7 +382,7 @@ class MobiMLizer(object):
|
|||||||
istate.fgcolor = style['color']
|
istate.fgcolor = style['color']
|
||||||
istate.strikethrough = style.effective_text_decoration == 'line-through'
|
istate.strikethrough = style.effective_text_decoration == 'line-through'
|
||||||
istate.underline = style.effective_text_decoration == 'underline'
|
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'):
|
if 'monospace' in ff or 'courier' in ff or ff.endswith(' mono'):
|
||||||
istate.family = 'monospace'
|
istate.family = 'monospace'
|
||||||
elif ('sans-serif' in ff or 'sansserif' in ff or 'verdana' in ff or
|
elif ('sans-serif' in ff or 'sansserif' in ff or 'verdana' in ff or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user