• 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: NSControlGlyphs generation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSControlGlyphs generation


  • Subject: Re: NSControlGlyphs generation
  • From: Glenn Andreas <email@hidden>
  • Date: Wed, 15 Sep 2004 13:23:52 -0500

At 5:21 PM +0200 9/15/04, Antoine Baudoux wrote:
Hi,

How do i add characters in an NSAttributedString that will produce NSControlGlyphs, so that the boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex: method in NSATSTypesetter is called?

Thanks in advance for your answer

I think something as simple as @"abc\tdef" will do it - from the way I understand things, NSControlGlyph is generated for anything whose spacing needs to be determined programatically (as opposed to simple glpyhs that advance sequentially or things like diacritics that are overstruck on the last glpyh). The "\t", however, has a variable advancement width, depending on the location of the glpyh (so for NSControlGlyph case you need to look at the underlying charcter - in this case the tab - to be able to figure out how to handle it).


--
Glenn Andreas email@hidden <http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: NSControlGlyphs generation
      • From: Antoine Baudoux <email@hidden>
References: 
 >NSControlGlyphs generation (From: Antoine Baudoux <email@hidden>)

  • Prev by Date: Putting insertion point between two NSTextAttachment images
  • Next by Date: Re: Debugging "attempt to insert nil value" on customer's machine
  • Previous by thread: NSControlGlyphs generation
  • Next by thread: Re: NSControlGlyphs generation
  • Index(es):
    • Date
    • Thread