Modern outlined text

Yes, the Gulfside trail (AT) label is the most obvious one. Also if you look closely at the letters in Great Gulf Trail you can see that the background white outlined letters are not perfectly registed with the red letters. There tends to be more white on the bottom of the letters than at the top. Also if you look at the “T” you can see that there is more white on the “r” side of the T than on the space side. I’ve seen other examples where the misregistration is worse that than here.

That’s why in my original post I was asking about the XOJO_GRAPHICS_DRAWTEXT_MODE environment variable and how to set is because I was hoping that it would fix the misregistration that seems fairly common.

edit: I was using transparency originally because to my eyes, using either method, the background outline looks too dark (or light in the case of the red.

Gotcha - I can see what you’re seeing. I’m going to do some work on this and see if I can work out a better solution. I’ve already found an unrelated bug in how Xojo draws outline text that I have to file first…

How about drawing all of the outlines first and then going back and drawing the full colors afterwards.

That’s a great suggestion. However, if he’s going to continue to use transparent colors (which I don’t think is a great idea, but whateer) then he’s still going to run into the overlapping strokes problem.

I have some ideas on how to avoid this… will try to follow up after dinner. :slight_smile:

If that’s the case, you could pre-render the strokes to another picture using a gray that represents the amount of transparency you want and a white background, and then make yet another picture that has solid color blocks where the outlines go and copy the stroke picture to the alpha channel. You end up with a picture that can be drawn that’ll have translucent areas.

It’s a hack, but that technique was even used in the Xojo IDE from time to time.

This would get rid of the overlapping background strokes that Eric pointed out but would not address the misregistration problem that I referred to above.