Hi Shawn B.,
> I would like to discover whether a font support chinese characters so
> I can display it in a list of options that the chinese text can be
> displayed in. I am running US English version of Windows and not
> Chinese Windows. I would like to show a list of fonts filtered by
> whether they can render Chinese characters.
See: GetFontUnicodeRanges
http://msdn.microsoft.com/library/en-us/gdi/fontext_2alv.asp
See: GetGlyphIndices
http://msdn.microsoft.com/library/en-us/gdi/fontext_4svn.asp

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Mihai N. - 24 Dec 2004 21:24 GMT
> See: GetFontUnicodeRanges
> http://msdn.microsoft.com/library/en-us/gdi/fontext_2alv.asp
This is available starting with Windows 2000.
If you need something working on 9x, Me, NT, take a look at
GetTextCharsetInfo

Signature
Mihai
-------------------------
Replace _year_ with _ to get the real email
Shawn B. - 25 Dec 2004 01:44 GMT
How do I get the hDC from a font object?
> Hi Shawn B.,
>
[quoted text clipped - 9 lines]
> See: GetGlyphIndices
> http://msdn.microsoft.com/library/en-us/gdi/fontext_4svn.asp
Mihai N. - 25 Dec 2004 05:44 GMT
> How do I get the hDC from a font object?
Select the font in an existing hDC.
Or CreateCompatibleDC with the hDC of some window and select the font in it.
Or CreateDC( _T("DISPLAY"), _T("DISPLAY"), NULL, NULL ) and do the select.

Signature
Mihai
-------------------------
Replace _year_ with _ to get the real email