Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Problem rendering italic fonts
- - By danikaze Date 2011-08-20 04:35
Hi!

Have you noticed that when trying to draw a italic font the characters are "cut"?

Well, I think an image will be better. Just check the character 'N', or 'm':


I think this happens because the drawing method "reserves" a "box" for drawing each character, and as it's italic, the character is drawn outside the box.
Any way to manage this?
Attachment: texty.png - Text (4k)
Parent - - By jlnr (dev) Date 2011-08-20 05:58
Two things- which OS are you on, and which font do you use? And, you can attach your image via the 'attach' link after posting. Can't see your image right now because this domain hasn't been registered :)
Parent - - By danikaze Date 2011-08-20 17:15
I'm on Windows 7 with C++
The font was created with Gosu::Font(graphics(), Gosu::defaultFontName(), 20, 0);

Image has been attached to the 1st post ;)
Parent - - By jlnr (dev) Date 2011-08-21 01:26
Okay, noted. Thanks for reporting!
Parent - By Spooner Date 2011-11-09 17:05
Still having issues with an italic font cutting off the right-hand side of the characters. I guess the issue is that the character-image-width is set to equal to the character spacing, so any right-overhang gets cut off. Any chance that the images could be 50-100% wider than the space they need - that should allow for any overhang.
Up Topic Gosu / Gosu Exchange / Problem rendering italic fonts

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill