mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
403eec1609
commit
1b79589034
@ -368,7 +368,7 @@ class MobiMLizer(object):
|
|||||||
istate.strikethrough = style['text-decoration'] == 'line-through'
|
istate.strikethrough = style['text-decoration'] == 'line-through'
|
||||||
istate.underline = style['text-decoration'] == 'underline'
|
istate.underline = style['text-decoration'] == 'underline'
|
||||||
ff = style['font-family'].lower() if style['font-family'] else ''
|
ff = style['font-family'].lower() if style['font-family'] else ''
|
||||||
if 'monospace' in ff or 'courier' in ff:
|
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
|
||||||
'arial' in ff or 'helvetica' in ff):
|
'arial' in ff or 'helvetica' in ff):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user