| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Oct 30, 2007, at 6:31 AM, Sam <email@hidden> wrote:
Actually I wanted to give the user option of selecting a name for this font.
So the user may choose a name which is a mixture of Japanese/ Chinese/English
letters, say. But now, from your these words I infer that such a feature is
impossible with FOND resources. Am I right? I can only give a name of
specific Mac encoding only.
If you needto deal with Unicode fonts and font names, I suggest you move away from Quickdraw, and I would suggest you use the Font panel instead of CreateStandardFontMenu.
Sorry, at least for this version I have to deal with Quickdraw only :-(.
I can see TextEncoding information available in the FontFamilyRef (FMGetFontFamilyTextEncoding). But I may be embedding any of the available fonts with a Unicode name. Thank you for any help.
This is the encoding of the font based on the FOND resource ID and generally has nothing to do with names that may come from the font name table. However, it does provide the system with the encoding of the family name (from FOND resource ID) which is used with the font menu. If this is not correct, then the encoding in the menu will likely be wrong.
The script code is encoded in the FOND resource ID via the follow:
scriptCode = ((resourceID - 16384) / 512) + 1;
Please refer to Inside Mac: Text page B-6 as a reference.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.