New issue 21 by lib...@gmail.com: Can only access the first face in a face
library/collection
http://code.google.com/p/freetype-py/issues/detail?id=21
What steps will reproduce the problem?
1. Find a *.ttc file on your system that contains multiple faces
2. Open it using face = freetype.Face(path,1) to access the second face.
3. Check to see that face.face_index is 0, instead of 1.
What is the expected output? What do you see instead?
face.face_index should be 1. This is an issue in Face.__init__() where
instead calling error = FT_New_Face( library, filename, index, byref(face)
), it calls error = FT_New_Face( library, filename, 0, byref(face) )
instead. In other words, the current code always accesses the 0th face,
ignoring the 'index' parameter.
Comment #1 on issue 21 by Nicolas...@gmail.com: Can only access the
first face in a face library/collection
http://code.google.com/p/freetype-py/issues/detail?id=21
Thanks, it has been corrected in the trunk.