mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7442abf298
commit
9a76113e7f
@ -101,8 +101,9 @@ def extract_fonts(opf, log):
|
|||||||
|
|
||||||
font_family_map.finalize()
|
font_family_map.finalize()
|
||||||
|
|
||||||
|
if font_family_map.added_fonts:
|
||||||
for path, raw in css_files.iteritems():
|
for path, raw in css_files.iteritems():
|
||||||
with open(path, 'wb') as f:
|
with open(path, 'wb') as f:
|
||||||
nraw = font_family_map.replace_font_families(raw)
|
nraw = font_family_map.replace_font_families(raw) or raw
|
||||||
f.write(nraw)
|
f.write(nraw)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user