freetype-devel
[Top][All Lists]
Advanced

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

[Devel] Family and Sub-Family


From: Kornfeld Eliyahu Peter
Subject: [Devel] Family and Sub-Family
Date: Tue, 20 Jul 2004 08:16:32 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

Hi,

According to the OpentType specification I suggest a bit of change to way you returning the family and sub-family name. As written in the specification you should check name-id 16 and 17 before using id 1 and 2.
The code in sfobjs.c (line 551) should look like these:

face->root.family_name = tt_face_get_name( face, TT_NAME_ID_PREFERRED_FAMILY);
if(!face->root.family_name)
face->root.family_name = tt_face_get_name( face, TT_NAME_ID_FONT_FAMILY);

face->root.style_name = tt_face_get_name( face, TT_NAME_ID_PREFERRED_SUBFAMILY);
           if(!face->root.style_name)
face->root.style_name = tt_face_get_name( face, TT_NAME_ID_FONT_SUBFAMILY);

These changes will enable better grouping of the font-files containing versions of the same family.
Think about it!
   Peter



reply via email to

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