Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Font Doesn't Draw As Expected
- - By ell Date 2010-07-17 21:02
I am using the font "Silkscreen" for my game and it doesn't appear to draw correctly compared to a sample in gimp, take this image for instance:



The image on the left shows the font at size 16 normally, the image on the right shows Gosu's drawing of it at size 16 showing a much thicker, bulkier font, I would much rather see the crisp text I was expecting to see, like the one on the left of the image. Can anyone help? Thanks in advance, ell.
Parent - - By erisdiscord Date 2010-07-17 21:13
Gosu draws bold by default; there's a topic about text formatting on the forum that should help you out.

Short answer: start your strings with </b> to turn off bold.
Parent - - By TheOm3ga Date 2010-07-17 23:22
Or you can pass 0 as the fontFlags parameter.
Parent - - By erisdiscord Date 2010-07-17 23:31
I assume the OP is using Ruby based on the screen shot. Ruby Gosu's font constructor only accepts the font name and size.
Parent - By ell Date 2010-07-18 08:58
Thanks guys, you'v been a great help!
Up Topic Gosu / Gosu Exchange / Font Doesn't Draw As Expected

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill