Tao Wang
2010-05-07 01:55:00 UTC
Hi,
I'm using SystemParametersInfo() to get the default font in system.
However, the name I got is Localized Font Name, just as described in
MSDN:
http://msdn.microsoft.com/en-us/library/dd162620%28v=VS.85%29.aspx
======================
The fonts for many East Asian languages have two typeface names: an
English name and a localized name. EnumFonts, EnumFontFamilies, and
EnumFontFamiliesEx return the English typeface name if the system
locale does not match the language of the font.
======================
However, in my application, I need to get the English name in whatever
locale it is, rather than the localized name.
I'm awared the article : http://www.trigeminal.com/samples/font_choices.html
There is a list of sample, but how to get the English name of the
default font programmatically?
Thanks.
I'm using SystemParametersInfo() to get the default font in system.
However, the name I got is Localized Font Name, just as described in
MSDN:
http://msdn.microsoft.com/en-us/library/dd162620%28v=VS.85%29.aspx
======================
The fonts for many East Asian languages have two typeface names: an
English name and a localized name. EnumFonts, EnumFontFamilies, and
EnumFontFamiliesEx return the English typeface name if the system
locale does not match the language of the font.
======================
However, in my application, I need to get the English name in whatever
locale it is, rather than the localized name.
I'm awared the article : http://www.trigeminal.com/samples/font_choices.html
There is a list of sample, but how to get the English name of the
default font programmatically?
Thanks.