Re: A couple of NSFont questions
Re: A couple of NSFont questions
- Subject: Re: A couple of NSFont questions
- From: Douglas Davidson <email@hidden>
- Date: Wed, 5 May 2004 18:06:16 -0700
On May 5, 2004, at 4:59 PM, Steve Sims wrote:
What I can't work out is how to make use of this functionality. Do I
have to check each glyph by hand, or is there a way to ask the text
layout system what's the appropriate font for me to use for each
glyph?
The standard procedure is referred to as "font fixing", and
NSTextStorage does it for you automatically. You set a value for the
NSFontAttributeName representing the font you would like to use, and
NSTextStorage goes through and fixes it for you so that each character
has a font attribute with a font that can actually represent it. Just
ask the text storage for the values of NSFontAttributeName.
Douglas Davidson
_______________________________________________
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.