Re: NSControlGlyphs generation
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