mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
18a3257f5d
commit
d239e0907e
@ -89,7 +89,7 @@ class SubsetFonts(object):
|
|||||||
except (IndexError, KeyError, AttributeError, TypeError, ValueError):
|
except (IndexError, KeyError, AttributeError, TypeError, ValueError):
|
||||||
val = None if q in {'src', 'font-family'} else default
|
val = None if q in {'src', 'font-family'} else default
|
||||||
if q in {'font-weight', 'font-stretch', 'font-style'}:
|
if q in {'font-weight', 'font-stretch', 'font-style'}:
|
||||||
val = val.lower() if val else val
|
val = unicode(val).lower() if (val or val == 0) else val
|
||||||
if val == 'inherit':
|
if val == 'inherit':
|
||||||
val = default
|
val = default
|
||||||
if q == 'font-weight':
|
if q == 'font-weight':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user