Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Font Names



On Aug 17, 2003, at 6:24 PM, Rosyna wrote:

Some fonts (Eurostile Demi Oblique) show up using complete different names (DO Eurostile DemiOblique). These names don't exist any where in any font name table. However, they do appear in the the FOND resource of the screen font version. How can I get this name given a font family id? The FOND resource does not match the Family ID (1219). Any help would be much appreciated.

You can get the 'FOND' resource based QuickDraw font family name using FMGetFontFamilyName (e.g., "DO Eurostile DemiOblique"). The problem with the font family identifier is that there may be multiple 'FOND' resources referencing a single font. For example, "DO Eurostile DemiOblique" (font family) + plain (font style) may point to the same font as, say, "Eurostile Regular" (font family) + italic/oblique (font style). You often run into this issue if you switch back and forth between the font-centric view of ATS, Cocoa, and Quartz, and the 'FOND' resource based view of QuickDraw. You can use the font and intrinsic style information from the conversion function, FMGetFontFromFontFamilyInstance, to help you distinguish between multiple 'FOND' resources. From the previous example, you can convert the font family identifier and style to a font reference and check if it matches the original font reference. Also, an intrinsic plain style would mean you have the font family identifier for "DO Eurostile DemiOblique" rather than "Eurostile Regular".
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.
References: 
 >Getting Font Names (From: Rosyna <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.