mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-26 20:57:35 +03:00
Use a bit more the cairo API.
This commit is contained in:
parent
d702f1085f
commit
ae3c73db68
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
/.coverage
|
||||
/.tox
|
||||
/dist
|
||||
/weasyprint/tests/test_results
|
||||
|
@ -601,6 +601,5 @@ def apply_2d_transforms(context, box):
|
||||
args = (1, math.tan(angle(args)), 0, 1, 0, 0)
|
||||
else:
|
||||
assert name == 'matrix'
|
||||
context.set_matrix(cairo.Matrix(*args).multiply(
|
||||
context.get_matrix()))
|
||||
context.transform(cairo.Matrix(*args))
|
||||
context.translate(-origin_x, -origin_y)
|
||||
|
Loading…
Reference in New Issue
Block a user