window.Asc.plugin.executeMethod ("GetFontList", callback)
Defines the method that allows getting the fonts list.
This method should be used in the following way:
window.Asc.plugin.executeMethod ("GetFontList");
The method returns an array of the FontInfo objects containing the data about the used fonts in the following form (JSON):
{
"m_wsFontName" : "string",
"m_wsFontPath" : "string",
"m_lIndex" : number,
"m_bBold": boolean,
"m_bItalic" : boolean,
"m_bIsFixed" : boolean,
"m_aPanose" : number[],
"m_ulUnicodeRange1" : number,
"m_ulUnicodeRange2" : number,
"m_ulUnicodeRange3" : number,
"m_ulUnicodeRange4": number,
"m_ulCodePageRange1" : number,
"m_ulCodePageRange2" : number,
"m_usWeigth" : number,
"m_usWidth" : number,
"m_sFamilyClass" : "string",
"m_eFontFormat" : "string",
"m_shAvgCharWidth": number,
"m_shAscent" : number,
"m_shDescent" : number,
"m_shLineGap" : number,
"m_shXHeight" : number,
"m_shCapHeight" : number
}