AsposeFontGetGlyphNames

AsposeFontGetGlyphNames function

Get glyph names of font.

function AsposeFontGetGlyphNames(
    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)
glyphNamesnames of glyphs

Examples

Simple example:

    json = AsposeFontModule.AsposeFontGetGlyphNames(font_file);
    console.log("AsposeFontGetGlyphNames => %O",  json.errorCode == 0 ? "Glyph Names:" + json.glyphNames.join(";") : json.errorText);