getCharset method
Gets a VARIANT that specifies the character set of a given font.
Syntax
HRESULT retVal = object.getCharset(fontName, charset);
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 (United States, Western Europe).
-
System default.
-
Standard symbols.
-
[Microsoft Windows NT 4.0 and later] Apple Macintosh®.
-
Japanese (Shift-JIS).
-
Korean (Wansung).
-
[Microsoft Windows NT 4.0 and later] Korean (Johab).
-
Simplified Chinese.
-
Traditional Chinese.
-
[Microsoft Windows NT 4.0 and later] Greek.
-
[Microsoft Windows NT 4.0 and later] Turkish.
-
[Microsoft Windows NT 4.0 and later] Vietnamese.
-
[Microsoft Windows NT 4.0 and later] Hebrew.
-
[Microsoft Windows NT 4.0 and later] Arabic.
-
[Microsoft Windows NT 4.0 and later] Baltic.
-
[Microsoft Windows NT 4.0 and later] Russian.
-
[Microsoft Windows NT 4.0 and later] Thai.
-
[Microsoft Windows NT 4.0 and later] Eastern European.
-
OEM, other charset.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
There are no standards that apply here.
Remarks
The values are those returned by the Microsoft Win32 API function GetTextCharset.
IHtmlDlgSafeHelper::getCharset was introduced in Microsoft Internet Explorer 6.