font display problem

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.

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).]

Thanks anyway.

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

Yes, I compiled the application with the _UNICODE preprocessor directive but to no avail.