getCharset method
[This documentation is preliminary and is subject to change.]
Gets a VARIANT that specifies the character set of a given font.
Syntax
HRESULT retVal = object.getCharset(fontName, );
Standards information
There are no standards that apply here.
Parameters
- fontName [in]
-
Type: BSTR
A BSTR that specifies the name of the font.
- charset [out, retval]
-
Type: VARIANT
A pointer to a VARIANT of type VT_I4 that specifies the character set of the given font.
ANSI_CHARSET (0)
-
ANSI (United States, Western Europe).
DEFAULT_CHARSET (1)
-
System default.
SYMBOL_CHARSET (2)
-
Standard symbols.
MAC_CHARSET (77)
-
[Microsoft Windows NT 4.0 and later] Apple Macintosh®.
SHIFTJIS_CHARSET (128)
-
Japanese (Shift-JIS).
HANGEUL_CHARSET or HANGUL_CHARSET (129)
-
Korean (Wansung).
JOHAB_CHARSET (130)
-
[Microsoft Windows NT 4.0 and later] Korean (Johab).
GB2312_CHARSET (134)
-
Simplified Chinese.
CHINESEBIG5_CHARSET (136)
-
Traditional Chinese.
GREEK_CHARSET (161)
-
[Microsoft Windows NT 4.0 and later] Greek.
TURKISH_CHARSET (162)
-
[Microsoft Windows NT 4.0 and later] Turkish.
VIETNAMESE_CHARSET (163)
-
[Microsoft Windows NT 4.0 and later] Vietnamese.
HEBREW_CHARSET (177)
-
[Microsoft Windows NT 4.0 and later] Hebrew.
ARABIC_CHARSET (178)
-
[Microsoft Windows NT 4.0 and later] Arabic.
BALTIC_CHARSET (186)
-
[Microsoft Windows NT 4.0 and later] Baltic.
RUSSIAN_CHARSET (204)
-
[Microsoft Windows NT 4.0 and later] Russian.
THAI_CHARSET (222)
-
[Microsoft Windows NT 4.0 and later] Thai.
EASTEUROPE_CHARSET (238)
-
[Microsoft Windows NT 4.0 and later] Eastern European.
OEM_CHARSET (255)
-
OEM, other charset.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The values are those returned by the Microsoft Win32 API function GetTextCharset.
IHtmlDlgSafeHelper::getCharset was introduced in Microsoft Internet Explorer 6.
Build date: 6/12/2012