Getting rid of italic text

Started by
0 comments, last by thorpe 22 years, 9 months ago
Somehow, all text in my game has suddenly become Italic. (I use TextOut and Directdraw). It is however no only in my game but a little everywhere in every program (Winamp as an example). How do I assure myself that this never happens in my game? Can I call some functions which makes the text normal? When I create the fonts I use I set the Italic boolean to false. I''d appreciate some help here. Johan Torp - http://www.destruction.nu
Johan Torp - http://www.destruction.nu
Advertisement
If it happens unnaturally in other programs as well, then I don''t think it has to do with your code.

But either way, I would suggest writing your own font engine. This would guarantee non-italic text, and would be a whole lot faster than making GDI calls (a WHOLE lot faster, plus the user doesn''t have to have a specific font installed). Just make a bitmap with all the characters of the font you want to use, and when the game is initialized, blit it to a surface and then when you want to display characters, just blt the character you want off of the surface onto another surface where you want to display the text.

This topic is closed to new replies.

Advertisement