On Apr 15, 2007, at 10:47 PM, [EMAIL PROTECTED] wrote: > On Apr 15, 2007, at 19:58 UTC, Marc (aliacta.com) wrote: > >> Is it possible to draw anti-aliased text with shadow (at least on OS >> X, preferably on Win as well) similar to what you can see on the OS X >> desktop. I.e. each item on the desktop has a caption in white text >> with shadow that allows a good contrast with the backdrop picture. > > Sure. Just draw the text in black a pixel or two below and to the > right of its "real" position; then draw it again in white at its > proper > position.
That's how I do it now but it doesn't look good enough. Especially not with drawn text. With two superimposed StaticTexts it looks a lot better but that's not as clean as actually drawing it all. AFAIK anti-aliasing isn't supported with drawn text but is in StaticTexts. RBNUBE's way of doing it with blurred text would be more like it. That's how I used to create shading with early versions of Photoshop. However the blurring must be computed fast enough and a mask should be generated as well. I'll have to test all of this out myself I'm afraid since no one seems to have walked this path before me. Thanks for the suggestions, Marc _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
