Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / December 2004

Tip: Looking for answers? Try searching our database.

Discover whether font supports Chinese

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shawn B. - 24 Dec 2004 08:29 GMT
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 - 24 Dec 2004 08:57 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.