1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-08-17 08:30:33 +03:00

Use a bit more the cairo API.

This commit is contained in:
Simon Sapin 2012-03-07 14:02:07 +01:00
parent d702f1085f
commit ae3c73db68
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/.coverage
/.tox
/dist
/weasyprint/tests/test_results

View File

@ -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)