When standard text lays out with underlining, the underline is
interrupted around descenders, which is nice. Unfortunately my
underlining code doesn't do this, and I can't see a simple way or layout
manager delegate method I could use to figure out where the breaks should
go. Is there
On 14/05/2009, at 4:19 AM, Benjamin Stiglitz wrote:
You can draw the underline first, then a large point-width stroke in
NSClearColor in copy compositing mode (or alternatively, the wide
stroke
fill used as a negative mask), then the actual fill on top.
OK, sounds feasible, I'll give it
On May 13, 2009, at 4:36 PM, Graham Cox wrote:
I do note that the standard underlining can't be doing this though,
because the ends of the underline are always square, whereas this
technique will curve the underline according to the shape of the
glyph. I'm also not sure if it's going to
I have code that lays out text along arbitrary paths. I've been
working on making this as compatible with standard text layout as
possible, and it's 99% there.
In my case, I can't let the layout manager directly handle the
underlining because on an arbitrary path, the underline ends up as