rougier / freetype-py

Python binding for the freetype library
Other
298 stars 88 forks source link

Expose binding to FT_Outline_EmboldenXY() #143

Closed takaakifuji closed 2 years ago

takaakifuji commented 2 years ago

I noticed that FT_Outline_EmboldenXY() looks missing in raw.py, which is an enhanced variant to FT_Outline_Embolden().

Adding a Pythonic binding should be trivial, but I'm not sure it's worth it.

HinTak commented 2 years ago

Please add "try ... except AttributeError:" like other places in raw.py, and perhaps also a comment about what version of freetype the routine was introduced. This construct is there to allow version differences and for adding recently introduced routines.

try:

except AttributeError:
    pass
takaakifuji commented 2 years ago

Thank you so much for pointing this out! I didn't realise the function was relatively new one.

HinTak commented 2 years ago

Apparently it first appeared in 2.5 (released in 2013), so not particularly new, but certainly rarely used.

rougier commented 2 years ago

Thanks.