Re: Webdings et.al. ?
Re: Webdings et.al. ?
- Subject: Re: Webdings et.al. ?
- From: Andrew Pinski <email@hidden>
- Date: Mon, 17 Jun 2002 15:43:36 -0400
Yes but the font is mapped to a different spot in unicode
than the lower 8 bit characters. eg 0-255.
You have to look up on the web where they are mapped
because I do not know off hand.
Thanks,
Andrew Pinski
On Monday, June 17, 2002, at 03:33 , Robert Miller wrote:
Hello,
I thought Cocoa was all based on unicode encoding ie. 16
bit chars. So if I create an NSString using @"G" isn't it
converted into a unicode string. So what's the trick then ?
On Monday, June 17, 2002, at 03:32 PM, Andrew Pinski wrote:
That is because you have to use a different encoding rather than
ASCI or UTF-8 to get webdings from regular characters.
Thanks,
Andrew Pinski
On Monday, June 17, 2002, at 03:18 , Julian Barkway wrote:
On Monday, June 17, 2002, at 08:51 pm, Robert Miller wrote:
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 ?
I recently had exactly this problem but when I finally got it
to work (by using a slightly different version of the Dingbats
font I had lying around) my alpha testers complained they
could only see the underlying alphabetic character. In the
end, I gave up and designed myself a very simple custom image
which I then 'aquafied' using Ben Haller's excellent AquaTint
app. Needless to say, this looks very much better than the
Dingbat I originally used....
_______________________________________________
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.
_______________________________________________
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.