Click here to Skip to main content
15,888,271 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi.
I'm in trouble with a Unicode issue. I want to get the outline for a free Unicode character. With "free" I mean that it can be either an Arabic char or a Chinese char, or something else. I have the right Unicode value for this character.

Everything seems to be ok since I use GetGlyphOutlineW() for Unicode characters. But, I need to specify lfCharSet = ARABIC_CHARSET in the LOGFONT structure that I use in the SelectFont() method.

Since it is Unicode, why do I have to specify this ?

But overall, how can I get the right charset value for a free character. I mean, how to get ARABIC_CHARSET for a 0xFE character and get GREEK_CHARSET for something else. I don't want to make a list of range, because it's very inelegant and also too hard work....

Thank you very very much
Posted
Updated 20-May-10 4:54am
v2
Comments
Oakman 20-May-10 10:53am    
Reason for my vote of 1
Double posting

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