freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: philliprusso
Subject: Freetype for Python. AttributeError: module 'freetype' has no attribute 'Face'
Date: Fri, 15 Dec 2023 01:58:25 +0000

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:

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


Is there something wrong with the freetype.Face usage here?
Sent with Proton Mail secure email.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]