Issue 21 in freetype-py: Can only access the first face in a face library/collection

5 views
Skip to first unread message

freet...@googlecode.com

unread,
Apr 17, 2012, 9:36:31 PM4/17/12
to Nicolas...@inria.fr
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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.

freet...@googlecode.com

unread,
Apr 18, 2012, 2:24:47 AM4/18/12
to Nicolas...@inria.fr
Updates:
Status: Fixed

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.


Reply all
Reply to author
Forward
0 new messages