• 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: Charles Jolley <email@hidden>
  • Date: Sat, 19 Jan 2002 03:51:53 -0600

Hmm...well, I tried it with all Cocoa and it didn't work. I don't know why since it appears that the Cocoa stuff is just a wrapper around the CoreFoundation stuff. I probably did something else wrong in the Cocoa Version that I inadvertantly fixed when using CoreFoundation directly.

Thanks,
-Charles

On 15.01.2002 13:40:15, Aki Inoue <email@hidden> wrote:

>Charles,
>
>The string encoding stuff in Cocoa (NSString) does support as many
>encodings as in CoreFoundation. It's just that NSString.h doesn't list
>
>them all. Instead, they are enumerated in CFStringEncodingExt.h as the
>
>central place.
>
>Aki
>
>On Tuesday, January 15, 2002, at 03:17 AM, Charles Jolley wrote:
>
>> Hi Andy:
>>
>> This worked for me...thanks! I tried this last time using a
>Cocoa-only
>> approach, however it failed then. I think the reason is that Cocoa
>> does not appear to support as many text encodings as CoreFoundation
>> (which I don't really understand because I think one is based on the
>
>> other.)
>>
>> -Charles
>>
>> Charles Jolley
>> Okito Software
>>
>> On 13.01.2002 14:36:50, Andy <email@hidden> wrote:
>>
>>> Charles Jolley wrote:
>>>>
>>>> Hi,
>>>>
>>>> Does anyone know how to determine if a font is made to handle
>Asian
>>> (Japanese, Korean, etc) characters?
>>>>
>>>
>>> This will tell you the font encoding, putting the description in a
>>> label
>>> onscreen.
>>>
>>> Look at the classes mentioned, plus NSFont and NSFontManager and
>you
>>> will soon see how to classify fonts. The only tricky thing is you
>need
>>> to use the Core Foundation APIs as well as AppKit:
>>>
>>> //decoding string encodings requires use of Core Foundation
>CFString
>>> functions,
>>> //the NSString stuff is deprecated
>>> cfsEncoding =
>>> CFStringGetNameOfEncoding(CFStringConvertNSStringEncodingToEncoding
>>> ([m_currentFont
>>> mostCompatibleStringEncoding]));
>>> [[fontEncoding cell] setTitle: [FontWindowMediator
>>> CFStringToNSString: cfsEncoding]];
>>>
>>>
>>>
>>> --
>>> 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
>> _______________________________________________
>> cocoa-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.


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

  • Prev by Date: [ANN] Marks Calendar beta 0.1
  • Next by Date: NSOutlineView/NSTableView sorting?
  • Previous by thread: Re: Detecting Asian fonts?
  • Next by thread: Implementing Software Update into apps.
  • Index(es):
    • Date
    • Thread