PDA

View Full Version : font display problem



MartinFenech
08-19-2003, 02:17 AM
I using opengl with a win32 setup. My goal is to display text on screen in arabic font. I managed to display the text in other fonts but when it comes to arabic it doesn't work. I'm compiling in Unicode and am using all Unicode macros in my program. Any help is appreciated. I'm using the wglUseFontBitmaps function to craete the font bitmaps.

mikael_aronsson
08-19-2003, 09:40 PM
Hi !

Sorry, don't have a clue, but make sure you pass the correct min/max character values, I have no idea how many characters there are in an arabic font, also check for any error codes from the wgl... functions (getLastError)

Mikael


[This message has been edited by mikael_aronsson (edited 08-20-2003).]

MartinFenech
08-19-2003, 10:24 PM
Thanks anyway.

mikael_aronsson
08-20-2003, 04:22 AM
Hi !

Do you mean that you have compiled the application as a true unicode application ?, if not, make sure that you call wglUseFontBitmapsW and not wglUseFontBitmapsA which is the default for non unicode applications.

Mikael

MartinFenech
08-20-2003, 04:27 AM
Yes, I compiled the application with the _UNICODE preprocessor directive but to no avail.