Javascript Reference
Categories: Dialog Helper

javascript Dialog Helper getCharset( )

@March 15, 2008, 1:22 a.m.
getCharset( )Firefox/Netscape/NN n/a IE 6 Chrome/Safari/DOM n/a  

getCharset("fontName")

  

Returns an integer corresponding to a constant associated with a character set known by the operating system. Among the common values returned for font families installed on Latin-based systems are 0 (for plain ANSI character set) and 2 (for a symbol set). The required parameter is the name of a font to inspect for its character set. Such names may be retrieved from the fonts property of the Dialog Helper object:

var setID = dlgHelper.getCharset(dlgHelper.fonts.item(4));

Not all Windows versions have the same character set suite installed.

 
Parameters
 
fontName

String name of installed system font.

 
Returned Value

Integer.


Powered by Linode.