kyamagu / skia-python

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

M132's SkFontScanner #282

Open HinTak opened 1 week ago

HinTak commented 1 week ago

M132 adds a SkFontScanner class to the public headers, plus a freetype based derived class implementation. Before that, it looks like it started in m122 as a fontation-only private class.

This looks to be useful for #259, as an alternative to selection palette at load time, rather than as outlined in #259, via playing with the font descriptor after load.

HinTak commented 1 week ago

The new API seems to be useful for assessing variable instances too.