I think I've found a bug ... The issue is that it works fine on Python2 but segfaults on Python3.. (The second to last line causes the crash) Tested on v2.6.6 and 3.1.3: (Must have libfreetype6 and the TTF specified on 5th to last line [if on Windows, simple download libfreetype6 here: http://tinyurl.com/7dvgffw and replace the '.ttf' string with any existing .ttf file]) [File attached as 'test.py']
How is the fix related to Python? Also, you pass a unicode string to freetype.FT_New_Face. You should probably pass a bytes string there, and in any case set the "argtypes" and "restypes" attributes to ctypes functions, to prevent such failures.
Mmmm. The fix isn't necessary related to python at all but I figured might potentially AIDE in a python fix. Also, I'm not passing a unicode string... that says '/u' not '\u' ... Also, I tried setting res/argtypes but to no avail.