Re: Detecting Asian fonts?
Re: Detecting Asian fonts?
- Subject: Re: Detecting Asian fonts?
- From: Andy <email@hidden>
- Date: Tue, 15 Jan 2002 20:50:36 -0500
Aki Inoue wrote:
>
>
Andy,
>
>
The encoding stuff in NSString is not deprecated.
>
>
In fact, you don't need to use any CFString API in order to display the
>
encoding name.
>
>
[[fontEncoding cell] setTitle:[NSString
>
localizedNameOfStringEncoding:[m_currentFont
>
mostCompatibleStringEncoding]]];
>
>
Aki
Thanks. That is much neater. I got this email from DTS the other day:
>
NSStringEncoding type no longer enumerates all the supported encodings.
>
Instead, you can look at CFStringEncodingExt.h for the complete values.
To
>
convert NSStringEncoding to CFStringEncoding, you can use
>
CFStringConvertNSStringEncodingToEncoding. By converting the value
>
(2147483649) from Osaka using the function, you should get
>
kCFStringEncodingMacJapanese.
Sorry... I misinterpreted the "NSStringEncoding type no longer
enumerates all the supported encodings." as the whole thing being
deprecated. Over simplification on my part.
Of course, the documentation could *really* do with fixiing to mention
the existence of the CF header with the right valuies. And I missed
-localizedNameOfStringEncoding: altogether.
--
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
I think we finally found the killer app for Flash: animated stick men