freetype-devel
[Top][All Lists]
Advanced

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

Re: Freetype for Python. AttributeError: module 'freetype' has no attrib


From: Alexei Podtelezhnikov
Subject: Re: Freetype for Python. AttributeError: module 'freetype' has no attribute 'Face'
Date: Thu, 14 Dec 2023 21:49:24 -0500


I have bindings for freetype 2.4.0 for Python. I dont understand why that:

Do you realize that this version is 13 years old? I recently saw a current FreeType version in the anaconda environment. Just saying…

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)


FreeType requires initialization (internal module loading). See if you can find some _init_ method that you might need to call first.

reply via email to

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