• 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: A couple of NSFont questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >A couple of NSFont questions (From: Steve Sims <email@hidden>)

  • Prev by Date: Re: Cocoa and glutMainLoop()?
  • Next by Date: Re: Objective-C question
  • Previous by thread: A couple of NSFont questions
  • Next by thread: OutlineView to TableView to TextView binding, oh my...
  • Index(es):
    • Date
    • Thread