Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SilverSpook on Sun 05/07/2015 00:22:02

Title: Is There A Way To Change Font Outline Size?
Post by: SilverSpook on Sun 05/07/2015 00:22:02
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
Title: Re: Is There A Way To Change Font Outline Size?
Post by: ollj on Fri 10/07/2015 15:50:29
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.