mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book/Book polishing: Fix embedding all referenced fonts not catching fonts that are only specified via style attributes and not in any stylesheets.
This commit is contained in:
parent
c39c0a900c
commit
621d67273f
Binary file not shown.
@ -85,6 +85,10 @@ class FontStats
|
|||||||
family = style.getPropertyValue('font-family')
|
family = style.getPropertyValue('font-family')
|
||||||
if family
|
if family
|
||||||
ans[family] = true
|
ans[family] = true
|
||||||
|
if node.getAttribute('style')
|
||||||
|
family = node.style.getPropertyValue('font-family')
|
||||||
|
if family
|
||||||
|
ans[family] = true
|
||||||
py_bridge.value = ans
|
py_bridge.value = ans
|
||||||
|
|
||||||
if window?
|
if window?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user