AsposeFontGetGlyphNames
AsposeFontGetGlyphNames function
Get glyph names of font.
function AsposeFontGetGlyphNames(
fileBlob,
fileName
)
| Parameter | Type | Description |
|---|---|---|
| fileBlob | Blob object | Content of source font for convert. |
| fileName | string | File name. |
Return Value
JSON object
| Field | Description |
|---|---|
| errorCode | code error (0 no error) |
| errorText | text error ("" no error) |
| glyphNames | names of glyphs |
Examples
Simple example:
json = AsposeFontModule.AsposeFontGetGlyphNames(font_file);
console.log("AsposeFontGetGlyphNames => %O", json.errorCode == 0 ? "Glyph Names:" + json.glyphNames.join(";") : json.errorText);