• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting Asian fonts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Detecting Asian fonts? (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: Tips on Reading TFM?
  • Next by Date: Re: Learning Objective C/Cocoa
  • Previous by thread: Re: Detecting Asian fonts?
  • Next by thread: Re: Detecting Asian fonts?
  • Index(es):
    • Date
    • Thread