Archived

This topic is now archived and is closed to further replies.

thorpe

Getting rid of italic text

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites