mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
d96328a259
commit
df382c177b
@ -280,7 +280,7 @@ class SubsetFonts(object):
|
|||||||
return ans
|
return ans
|
||||||
|
|
||||||
def find_usage_in(self, elem, inherited_style):
|
def find_usage_in(self, elem, inherited_style):
|
||||||
style = self.elem_style(elem.get('class', ''), inherited_style)
|
style = self.elem_style(elem.get('class', '') or '', inherited_style)
|
||||||
for child in elem:
|
for child in elem:
|
||||||
self.find_usage_in(child, style)
|
self.find_usage_in(child, style)
|
||||||
font = self.used_font(style)
|
font = self.used_font(style)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user