getCharset method
Gets a Variant that specifies the character set of a given font.
Syntax
var charset = HtmlDlgSafeHelper.getCharset(fontName);Parameters
- fontName [in]
-
Type: String
A String that specifies the name of the font.
- charset [out, retval]
-
Type: Variant
A pointer to a Variant of type Integer 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: Variant
A pointer to a Variant of type Integer that specifies the character set of the given font.
ANSI_CHARSET0ANSI (United States, Western Europe).
DEFAULT_CHARSET1System default.
SYMBOL_CHARSET2Standard symbols.
MAC_CHARSET77[Microsoft Windows NT 4.0 and later] Apple Macintosh®.
SHIFTJIS_CHARSET128Japanese (Shift-JIS).
HANGEUL_CHARSET or HANGUL_CHARSET129Korean (Wansung).
JOHAB_CHARSET130[Microsoft Windows NT 4.0 and later] Korean (Johab).
GB2312_CHARSET134Simplified Chinese.
CHINESEBIG5_CHARSET136Traditional Chinese.
GREEK_CHARSET161[Microsoft Windows NT 4.0 and later] Greek.
TURKISH_CHARSET162[Microsoft Windows NT 4.0 and later] Turkish.
VIETNAMESE_CHARSET163[Microsoft Windows NT 4.0 and later] Vietnamese.
HEBREW_CHARSET177[Microsoft Windows NT 4.0 and later] Hebrew.
ARABIC_CHARSET178[Microsoft Windows NT 4.0 and later] Arabic.
BALTIC_CHARSET186[Microsoft Windows NT 4.0 and later] Baltic.
RUSSIAN_CHARSET204[Microsoft Windows NT 4.0 and later] Russian.
THAI_CHARSET222[Microsoft Windows NT 4.0 and later] Thai.
EASTEUROPE_CHARSET238[Microsoft Windows NT 4.0 and later] Eastern European.
OEM_CHARSET255OEM, other charset.
Standards information
There are no standards that apply here.
Remarks
The values are those returned by the Microsoft Win32 API function GetTextCharset.
getCharset was introduced in Microsoft Internet Explorer 6.
See also