View Full Version : Problem with centering the text!
How can I center the text if I use chars like 'ì','š','è','ù' etc. I tried use code from NEHE tutorial no.14, but It doesn't work.With normal chars It works, but with chars above It doesn't work.
Thanks for answer
02-24-2003, 09:59 AM
does it even display those characters at all. If it doesnt then you will need to create your own bitmap font. If they do display then I would try the tutorial at gametutorials.com
[This message has been edited by mdog1234 (edited 02-24-2003).]
02-24-2003, 10:46 AM
This looks like a problem of you using either a MBC code page or Unicode string, and using strlen to get the length. For Unicode strings use wcslen. If using MBC, use _mbslen or _mbstrlen. The MBC stuff assumes you are using Windows, otherwise it is probably Unicode.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.