justvanrossum / drawbot-skia

A cross-platform subset of the DrawBot drawing API, using Skia
Apache License 2.0
77 stars 8 forks source link

newPage() requires arguments #13

Closed jansindl3r closed 3 years ago

jansindl3r commented 3 years ago

newPage() requires argument, though mac's drawbot doesn't. This breaks compatibility of code that can be shared in class for both drawbot app and drawbot-skia. Is it intentional? Can I make a PR?

justvanrossum commented 3 years ago

It's in between intentional and an oversight... (I'm not super happy with the argument-less version, but let's make it compatible.)

A PR would be great! Best with a test case.

Thanks.

jansindl3r commented 3 years ago

Well the test fails with pdfs, f.e. arcTo.pdf differ on 4th byte.

expected:b'<</Producer (Skia/PDF m87)>>\n' output:b'<</Producer (Skia/PDF m86)>>\n'

so just update skia, I guess :)

justvanrossum commented 3 years ago

so just update skia, I guess :)

Yes pip install --upgrade skia-python please :)

I've been meaning to make the tests accept these differences, but didn't manage yet.

justvanrossum commented 3 years ago

Fixed with 0bc14c38e00b61fbb80027ece7220c9a5650b930