mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 17:14:34 +02: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
2 changed files with 4 additions and 0 deletions
Binary file not shown.
|
|
@ -85,6 +85,10 @@ class FontStats
|
|||
family = style.getPropertyValue('font-family')
|
||||
if family
|
||||
ans[family] = true
|
||||
if node.getAttribute('style')
|
||||
family = node.style.getPropertyValue('font-family')
|
||||
if family
|
||||
ans[family] = true
|
||||
py_bridge.value = ans
|
||||
|
||||
if window?
|
||||
|
|
|
|||
Loading…
Reference in a new issue