justvanrossum / drawbot-skia

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

fontVariations() does not work correctly on Linux #1

Closed justvanrossum closed 4 years ago

justvanrossum commented 4 years ago

Possibly due to a bug in skia-python: kyamagu/skia-python/issues/112

justvanrossum commented 4 years ago

Or due to me using the skia-python API wrong.

justvanrossum commented 4 years ago

This test script does not give the expected result on Linux: https://github.com/justvanrossum/drawbot-skia/blob/master/tests/apitests/fontVariations.py

https://github.com/justvanrossum/drawbot-skia/blob/2eace01c2d71b5e179c0bb82b8d7ac9865ba1150/tests/apitests/fontVariations.py#L1-L15

justvanrossum commented 4 years ago

This appears to be fixed thanks to recent changes to the TextStyle object: I no longer use the skia API to get at the current VF location, and setting is apparently not a problem.