Lesson 24 -- special characters
OMG OMG OMFG!!! 0n tha nEhE Less 24 thresz laike N0 C00l Charcz, laike N0 ç á á ê Æ æ 'n StUfF. Howz Am me gonna D0 my 1337 TalKz now???
Well, seriuslly, on Lesson 24, if you use characters like ç Á á and general, they won't print into screen... In English, this isn't really a problem, but if you are in other languages (like Portuguese), then you really need these characters. Has anyone ever tried to do that? I remember that once I made this change on Lesson 12 (I think, the one with bitmaps fonts), but it was 2 years ago and I lost that file. Does anyone know how to do that?
Thanks!
Lesson 24 uses textured fonts.
You just have to modify the image of the font in order to insert localized character set.
Also please note that internationalization has always been a problem in computer programs. As long as you get the 128 characters from the ASCII it's okay, but when you need to add special characters you have to use things like Unicode and such, and it goes beyond the scope of the tutorial. However, I agree a small note about that in the tut would be nice !
You just have to modify the image of the font in order to insert localized character set.
Also please note that internationalization has always been a problem in computer programs. As long as you get the 128 characters from the ASCII it's okay, but when you need to add special characters you have to use things like Unicode and such, and it goes beyond the scope of the tutorial. However, I agree a small note about that in the tut would be nice !
The problem is... they allready are in the texture, but when I type them in a glPrint(...) function, they wno't show up! I remember once I did this with other font tutorial, but I did that by changing the amount of characters passes to the GLlist... but int this one the list size is allready 256 (with shoud allready contain spacial characters, but for some reason they aren't printed on the screen)
Anyway, thanks for the help, i realise that this is quite a tricky problem.
Anyway, thanks for the help, i realise that this is quite a tricky problem.
Ok, I did come more tests, and realized that in this tutorial there are 2 sets of characters in the same file... one normal and the other italic. Now, if I use the normal set (the first one in the file) instead and use the spacial characters, instead of showing nothing like he used to do (I didn't noticed at that time I had the italic set), they will show some random character from the italic set (not trully random, just not the same I typed)!
Well, this looks like I'll have to look for every characters number....
Well, this looks like I'll have to look for every characters number....
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement