AsposeFontGetGlyphCount

AsposeFontGetGlyphCount function

Get glyph count of font.

function AsposeFontGetGlyphCount(
    fileBlob,
    fileName
)
ParameterTypeDescription
fileBlobBlob objectContent of source font for convert.
fileNamestringFile name.

Return Value

JSON object

FieldDescription
errorCodecode error (0 no error)
errorTexttext error ("" no error)
glyphCountcount of glyphs

Examples

Simple example:

    json = AsposeFontModule.AsposeFontGetGlyphCount(font_file);
    console.log("AsposeFontGetGlyphCount => %O",  json.errorCode == 0 ? "Glyph count:" + json.glyphCount : json.errorText);