Export (0) Print
Expand All

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_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: Variant

A pointer to a Variant of type Integer that specifies the character set of the given font.

ANSI_CHARSET0

ANSI (United States, Western Europe).

DEFAULT_CHARSET1

System default.

SYMBOL_CHARSET2

Standard symbols.

MAC_CHARSET77

[Microsoft Windows NT 4.0 and later] Apple Macintosh®.

SHIFTJIS_CHARSET128

Japanese (Shift-JIS).

HANGEUL_CHARSET or HANGUL_CHARSET129

Korean (Wansung).

JOHAB_CHARSET130

[Microsoft Windows NT 4.0 and later] Korean (Johab).

GB2312_CHARSET134

Simplified Chinese.

CHINESEBIG5_CHARSET136

Traditional 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_CHARSET255

OEM, 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

HtmlDlgSafeHelper

 

 

Show:
© 2014 Microsoft