rougier / freetype-py

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

Fix wrong enum name in Face.get_fstype() #189

Closed NCBM closed 2 months ago

NCBM commented 2 months ago

The symbol FT_FSTYPE_XXX does not exist in freetype/ft_enums/ft_fstypes.py, and instead it is named FT_FSTYPES in that file.

Face.get_fstype() used the (maybe) wrong name and raises an error when calling it.

HinTak commented 2 months ago

This looks okay - would you consider adding a test into the tests directory for this also?

NCBM commented 2 months ago

This looks okay - would you consider adding a test into the tests directory for this also?

Added in smoke_test.py; what about this?

HinTak commented 2 months ago

Perfect. Thanks for the work. I'll merge this when CI check finishes.