justvanrossum / drawbot-skia

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

listFontVariations missing #10

Open benkiel opened 4 years ago

benkiel commented 4 years ago

Just ran into this, handy for knowing what the min/max values are of a axis

justvanrossum commented 4 years ago

Question: do you usually use this function with the current font, or do you pass a font name (or font path) explicitly?

(I'm considering not implementing the latter, as I don't like that part of the API: this function also exists as a method of FormattedString, where an explicit font name makes no sense to me, and this rubs the wrong way in terms of symmetry.)

justvanrossum commented 4 years ago

The "current font" behavior is implemented in 69d1b8695ea80c7210d188e34f45e4aff9f3e2ca

benkiel commented 4 years ago

In this case, current font

benkiel commented 4 years ago

Thank you for this!