Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Localized font name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localized font name



Rahul,

I don't know if my way works in your case, but I'll show you here what I have done by help from guys in this list just a few days ago. In my case I wanted to show the name in Japanese.

char localizedfontName[256];
ATSUFindFontName ( fmFont, kFontFullName, kFontMacintoshPlatform, kFontJapaneseScript,
kFontJapaneseLanguage, 255, localizedfontName, &oActualNameLength, NULL );


cfStr = CFStringCreateWithCString ( kCFAllocatorDefault, localizedfontName, CFStringGetSystemEncoding() );

The differences between your and mine are the second and third arguments except things related with language.

I hope this help you.

Norio Ota


On 2005年 12月 16日 , at 07:08 PM, Rahul Shetty wrote:

Hello Group,

I am developing an application that supports East-Asian languages.
There is a requirement that the font names should be displayed in the
language of the current locale . That is if the system is currently running
using the Korean locale , the names of fonts should be displayed in Korean.


I have tried the following method .

ATSUFindFontName(fontID, kFontFamilyName,
kFontNoPlatformCode,kFontKoreanScript, kFontKoreanLanguage,1024,
localizedfontName, &length, &fontNameIndex);

CFStringCreateWithBytes(NULL,(UInt8 *) localizedfontName,
length,kCFStringEncodingUnicode,false)

Is this the right method to procure the localized name of the font? If not
what would be the prescribed method?



Thank you & Regards, Rahul.


------------------------------------------------------- Robosoft Technologies - Partners in Product Development


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
heart.co.jp


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Localized font name (From: Rahul Shetty <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.