Freetype for Python. AttributeError: module 'freetype' has no attribute 'Face'

philliprusso <[email protected]> Fri, 15 Dec 2023 01:58:25 +0000
Newsgroups gmane.comp.fonts.freetype.devel
Message-ID <XIV3XRnymIeAjEUT4VfMfMCtNhezYzU-QqFrDS5zNUdUVhIO2-VeeRVrvr6qjkqq6-BS_jqTlvBPtn8ulIJnRCNch_0_JJ1xNb61Jjqw4jc=@proton.me>
I have bindings for freetype 2.4.0 for Python. I dont understand why that:

AttributeError: module 'freetype' has no attribute 'Face'

is coming from:

importfreetype
face=freetype.Face("Vera.ttf")
face.set_char_size( 48*64 )
face.load_char('S')
bitmap=face.glyph.bitmapprint(bitmap.buffer)

Is there something wrong with the freetype.Face usage here?

Sent with [Proton Mail](https://proton.me/) secure email.