mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-09-19 08:27:33 +03:00
parent
4c0bd62ac1
commit
4f109c0284
@ -458,7 +458,7 @@ class SVG:
|
|||||||
if node.display and node.tag not in DEF_TYPES:
|
if node.display and node.tag not in DEF_TYPES:
|
||||||
for child in node:
|
for child in node:
|
||||||
self.draw_node(child, font_size, fill_stroke)
|
self.draw_node(child, font_size, fill_stroke)
|
||||||
if node.tag in ('text', 'tspan'):
|
if node.tag in ('text', 'tspan') and child.visible:
|
||||||
if not is_valid_bounding_box(child.text_bounding_box):
|
if not is_valid_bounding_box(child.text_bounding_box):
|
||||||
continue
|
continue
|
||||||
x1, y1 = child.text_bounding_box[:2]
|
x1, y1 = child.text_bounding_box[:2]
|
||||||
|
Loading…
Reference in New Issue
Block a user