1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-09-11 20:47:56 +03:00

Usee *= when possible

This commit is contained in:
Guillaume Ayoub 2023-07-25 13:11:31 +02:00
parent f4f9d3460d
commit 50710de8e9

View File

@ -169,7 +169,7 @@ def text(svg, node, font_size):
letter, style, svg.context, inf, 0)
x = svg.cursor_position[0] if x is None else x
y = svg.cursor_position[1] if y is None else y
width = width*scale_x
width *= scale_x
if i:
x += letter_spacing