Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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!
Posted
Updated 10-Mar-11 11:16am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900