Jump to content
  • Advertisement
Sign in to follow this  
andrew1b

FTGL doesn't render extended ascii chars

This topic is 3680 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, I'm using FTGL to render texts but every time I use some foreign characters such as ã, õ, á, é, etc. in my string the resulting rendered string gets all messed up. I'm rendering my string with Pixmap on Windows (Code::Blocks). As long as I know, these characters shouldn't be a problem since they are in the ASCII label. Does anyone have any idea on how to render these characters without crashing my program? I'm using the font Verdana.TTF and I'm pretty sure it supports unicode and these characters (Am I wrong?) Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Well I solved my problem by using wide characters instead of signed chars. It doesn't seem to be the best solution but it worked.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!