TextOut() problem with Hebrew Fonts

All questions regarding Windows programming, post here. API,COM, ActiveX, DirectX, OpenGL, MFC and so on...

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

TextOut() problem with Hebrew Fonts

Postby BobHD » Wed May 09, 2012 9:27 am

Hi,

I have an application which uses the following call to draw text:

SetTextAlign(win, TA_BASELINE);
nbc = strlen(str);
TextOut(win, x, y, str, nbc);

This works mostly well, but when using an Hebrew font, the characters in the str string can be displayed in reverse order. That does not happen with all the characters, only the ones which hex value is more than 0x'80' (some of those in fact).

If I write the string one character at a time with:

int i;
for(i=0; i<nbc; i++)
TextOut(win, x+(width_char*i), y, str+i, 1);


there is no problem, but that makes for a slower display.

Any idea how I can solve this problem?

Thanks.
BobHD
 
Posts: 3
Joined: Wed May 09, 2012 9:25 am

Re: TextOut() problem with Hebrew Fonts

Postby malikinam » Tue May 22, 2012 5:35 am

such kind of application is not acceptable for any where, you should have to change the style of your application.
i can provide you the best way to submit of application but if you want..
HAIR STYLES hairstyles
malikinam
 
Posts: 1
Joined: Tue May 22, 2012 5:31 am


Return to Windows Programming

Who is online

Users browsing this forum: No registered users and 3 guests