Suggestion: Font outline/shadow

Started by Necro, Wed 23/07/2003 18:25:01

Previous topic - Next topic

Pumaman

You'll have to disable TTF anti-aliasing to fix this, I'm afraid. There's no easy way to work around it.

AJA

Btw, CJ... I noticed this with my credits plugin (I don't know if you're aware of it): DrawText can draw antialiased text onto the screen. So, if you'd just change the way DisplaySpeech etc. works to the way DrawText works we could have antialiased lucasarts style speech. :)

Pumaman

That doesn't work for the same reason as it doesn't on a transparent GUI.

Speech text is initially rendered to a transparent bitmap, which is then drawn onto the screen as necessary. Because of this, the antialiasing makes it merge with the pink transparent area of the bitmap giving the annoying pink edge effect.

Cerulean

Have you considered my suggestion? Try rendering it to a background color equal to the chosen shadow color, and then substituting trans-pink for that color.

Pumaman

Good idea, but that would of course only work when the font had an outline.

Ciro Durán

Quote from: Pumaman on Tue 05/08/2003 19:17:17
Good idea, but that would of course only work when the font had an outline.

Mmm, I don't understand why it would need to have an outline, it would be matter of rendering the font to the selected color (Just like rendering to a non-transparent GUI, i.e., the load and save window), and then replacing the background color. (Well, I don't really know if I'm following Cerulean's idea :P)

Gregjazz

Actully, if you're interested in real-time font ouliners, I just finished the beta version of a font outliner as a function.

You can check it out at http://herculeaneffort.myikonboard.com/viewthread.php?postid=50

Have fun!

TerranRich

So, have you gotten any good results yet on TTF outlining, CJ? I'd be really interested to see what you came up with.
Status: Trying to come up with some ideas...

Pumaman

Nope, I haven't got round to trying it out yet.

SMF spam blocked by CleanTalk