PDA

View Full Version : How to use OpenGL to render Unicode fonts?



newbie01
06-01-2004, 12:46 AM
How can I display Unicode fonts using glCallLists? :)

The version I have works only for ANSI fonts but not for Unicode :(

Source Code would in favour :)

mikael_aronsson
06-01-2004, 01:38 AM
Hi !

Do you need a platform independant solution or are you using a specific OS ?

If you use windows I belive the wgl font functions work just fine with unicode if you just have enough memory to handle the fonts.

Mikael

newbie01
06-01-2004, 01:40 AM
The solution must not be platform-independent.
The program should only run on Windows XP and 2000. ;)

yooyo
06-01-2004, 02:21 AM
I can send to you my font classes. It is capable to create texture from any windows font with requested codepage, size, bold, italic, underline.
ShowStr function renders text and take care of kerning and spacing.

yooyo

Obli
06-04-2004, 05:29 AM
Wow. I'm pretty interested in that. Can you spend some time explaining how did you make it work?
Unicode is something unclear to me.

newbie01
06-07-2004, 05:47 AM
@yoyoyo

Unfotunately the classes don't work with Unicode text :(

I just need to know how to draw Unicode (wide character) text strings. I would be glad if someonce could post sample code that shows how to do that. :)