kyamagu / skia-python

Python binding to Skia Graphics Library
https://kyamagu.github.io/skia-python/
BSD 3-Clause "New" or "Revised" License
237 stars 42 forks source link

AttributeError: 'skia.Paint' object has no attribute 'setTextScaleX' #223

Closed hyer closed 9 months ago

hyer commented 9 months ago

Is your feature request related to a problem? Please describe. Is the skia-python library support word spacing (ie. setTextScaleX)? Which is supported in skia c++: setTextScaleX

Describe the solution you'd like Add the setTextScaleX to python interface.

HinTak commented 9 months ago

You didn't notice the #if 0 // Disabled until updated to use current API. at the very top? This example has been disabled since Mar 16, 2019 in https://github.com/google/skia/commit/8751512aaadb7bb6c62b191ff8a773db1c53341d, and the actual setTextScaleX API was removed two months earlier on Jan 28, 2019 in https://github.com/google/skia/commit/5f528e5fd86c1004e047cdfcd165d7b9798c85ed , and this whole disabled example file was finally removed last month Nov 10 in https://github.com/google/skia/commit/d06840545bff13146e1e1bd2265965db4166bde9 .

You are about 4 years too late (Jan 28 2019) asking for this :-).