Shadow is not quite what I'm looking for, as the offset only applies for one side of the text (e.g. bottom right if I specify an offset of (+1, +1)). What I'm looking for is essentially a shadow for all directions at once.
Looks like I might have to use my own CG text drawing routines instead, in which case I should be able to use kCGTextFillStroke to achieve the outline effect, although I haven't tried this yet.
I also found an older Cocoa (not iPhone) forum post where someone suggested drawing the text 5 times (once each in black with an offset for each of the four cardinal directions, and once in white for the middle). Sounds a bit cumbersome and inefficient, but in case the kCGTextFillStroke approach should not work, I suppose this might be a fallback solution...
|