Groups | Blog | Home
all groups > dotnet internationalization > december 2004 >

dotnet internationalization : Discover whether font supports Chinese


Shawn B.
12/24/2004 12:29:22 AM
Greetings,

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.


Thanks,
Shawn

Jochen Kalmbach
12/24/2004 12:57:44 AM
Hi Shawn B.,

[quoted text, click to view]

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

--
Greetings
Jochen

My blog about Win32 and .NET
Mihai N.
12/24/2004 1:24:27 PM
[quoted text, click to view]
This is available starting with Windows 2000.
If you need something working on 9x, Me, NT, take a look at
GetTextCharsetInfo

--
Mihai
-------------------------
Shawn B.
12/24/2004 5:44:25 PM
How do I get the hDC from a font object?



[quoted text, click to view]

Mihai N.
12/24/2004 9:44:19 PM
"Shawn B." <leabre@html.com> wrote in
news:uGD3GNi6EHA.2572@tk2msftngp13.phx.gbl:

[quoted text, click to view]
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.

--
Mihai
-------------------------
AddThis Social Bookmark Button