Re: Webdings et.al. ?
Re: Webdings et.al. ?
- Subject: Re: Webdings et.al. ?
- From: Andy <email@hidden>
- Date: Tue, 18 Jun 2002 00:30:04 -0400
Robert Miller wrote:
>
>
Hello,
>
>
Am I missing something ? I have an NSTextView that I want to
>
display certain character(s) with using the Webdings font. So I get the
>
font using [NSFont fontWithName:@"Webdings" size:0], this returns and
>
instance of the Webdings font. If I use the debugger to look at the
>
NSFont its description says that it is 'CGS Webdings' ... I set the text
>
of my NSTextView to be some character say 'G' using setString:@"G" ,
>
which is a solid box in Webdings if I'm not mistaken, then I set the
>
font of the NSTextView the Webdings NSFont instance for the entire range
>
in this case a single character using setFont:theFont range:theRange,
>
yet when the text is displayed it is the 'G' character and not a
>
Webdings symbol ? what could be going wrong ? Is there a trick to using
>
non standard fonts ?
Unicode has a section for Dingbats in fonts, but generally only Adobe
(that I've seen so far) is particularly good at mapping their Dingbat
characters into the proper Dingbat range. Microsoft's XXXBats fonts tend
to just put them up in the "Private Use" area of the Unicode table. This
is legal per the standard but completely un-standardized.
That's really just background I suppose since you're really interested
in some kind of input method mapping. Mac OS 9 somehow mapped these
"odd" fonts so the characters appeared when you typed the usual a-z A-Z characters.
The font seems a little screwy - I'm looking at it my font info tool
http://pixel.recoil.org/cocoa/unicodefontinfo.html
I see that what I type doesn't match what I expect when using Webdings,
even if I switch to Unicode Hex Input and type raw unicode values, I
don't get the chars I specify in this font. its possible they're
actually encoded in illegal dead values in the unicode table. Code
points where chars just shouldn't be.
Not sure what to suggest :(
--
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.