I am working on windows mobile application and I have to use OpenType font in order to display Uyghur text on windows mobile, but it seems like there is a problem.
My approach is like this:
First: I created CFont object with Custom font.
Second: set controls font with CFont object.
Then displayed the Uyghur text, but it did not display.
To fix this, I converted Uyghur text's Unicode from basic region to extension region of Unicode and eversed the string, then display is normal. But when displaying in multiple lines it sucks. I am not able to get the width of characters in string. So multiple line display is not correct, there is always a space before and after each line.
I heard that if I register custom font to windows mobile, then it will display correct without any additional work, and I can get the true width of characters .
Is there anyone knows how to register font to windows mobile system with program?
Or displaying Arabic text in multiple line and fix the problem in other tasks with those language like Arabic, Persian and Uyghur (those languages written from right to left and letter width is unequal). So how can I get the true width of characters to display in multiple line? (I tried many API functions and member function of MFC , it does not work)
pls, help!