• 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: Antoine Baudoux <email@hidden>
  • Date: Wed, 15 Sep 2004 21:41:00 +0200

Thx for your answer. But then I have another question : i want to insert special control caracters, so i can do specific layout. \t is a control char but i cant differentiate them from the "normal" \t 's that are already present in my attributed string. Can i somehow use custom control chars?

Le 15-sept.-04, à 20:23, Glenn Andreas a écrit :

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: Douglas Davidson <email@hidden>
References: 
 >NSControlGlyphs generation (From: Antoine Baudoux <email@hidden>)
 >Re: NSControlGlyphs generation (From: Glenn Andreas <email@hidden>)

  • Prev by Date: Re: build numbers
  • Next by Date: NSAppKitVersionNumber for 10.3.0?
  • Previous by thread: Re: NSControlGlyphs generation
  • Next by thread: Re: NSControlGlyphs generation
  • Index(es):
    • Date
    • Thread