I have an application which uses the following call to draw text:
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:
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?