Is There A Way To Change Font Outline Size?

Started by SilverSpook, Sun 05/07/2015 00:22:02

Previous topic - Next topic

SilverSpook

Is there a way to change the size of the automatic outline around fonts?  I'm in higher res so the outline is too thin by default.

Also, is there a way to make it so that whenever you do "cEgo.SayBackground()", the background text has a solid rectangle behind it, like the way Sierra-style text is displayed?

Thanks

ollj

Get a DynamicSprite* that is large enough for the text to be displayed.
get a DrawingSurfsce* on the dynamicsprite
draw text on it, there's a Drawingsurface. function for that.
make a copy of the drawingsurface with text on it on another drawingsurcace,  copyit 4x, each copy shifted by +-1 pixel in x or y
tint the copy in a different color. the copy will be your "outlined shadow"
then, if 1 px is not enough of an outline, dopy and shift more.
then put the source dwaringsurface on it, to have centered outlined text, on drawingsurfaces.

put drawingsurface text on dynamicsprite. make an object or views element point at the dynamicsprite.

SMF spam blocked by CleanTalk