Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Gosu Exchange / Is there a way to create outlined text?
- - By mjbellantoni Date 2013-07-17 00:29
Is there a preferred technique for creating text which is outlined?  In my case, I'm want to have dark text on a darkish game map.  I want to create a tidy light outline around the text to make it more readable.

Many thanks!

Parent - By EdwinOdesseiron Date 2013-07-17 00:40
Who are you and why did you read my mind? I just got there to ask the same question :p
And if you don't mind me pinning up to your thread, I've got one more text-related question: is there any way, beside Window::scale, to change font size?
Parent - - By jlnr (dev) Date 2013-07-17 06:57
I usually draw the text in black at (x+1,y), (x-1,y), (x,y+1), (x,y-1) and then once in white at (x,y). Not highly professional but it looks okay. :)
Parent - By lol_o2 Date 2013-07-17 07:48 Edited 2013-07-17 08:42
Well, it's also possible to draw a text with greater scale/fontsize and then the smaller text over the middle of it. Or use a bitmap font with outline.
Parent - - By mjbellantoni Date 2013-07-17 09:15
I'll give this a try.  Thank you!
Parent - - By Dahrkael Date 2013-07-17 11:45
drawing the text 5 times like jlnr said will give you a better looking, using scaled text to outline looks a bit weird
Parent - By lol_o2 Date 2013-07-17 17:29
Scaled outline just depends on font. I found it impossible e.g. with Courier.
Parent - By Spooner Date 2013-07-18 09:04
You could use an Ashton::Shader when rendering the text:
Up Topic Gosu / Gosu Exchange / Is there a way to create outlined text?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill