AsposeFontGetGlyphCount
AsposeFontGetGlyphCount function
Get glyph count of font.
function AsposeFontGetGlyphCount(
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) |
| glyphCount | count of glyphs |
Examples
Simple example:
json = AsposeFontModule.AsposeFontGetGlyphCount(font_file);
console.log("AsposeFontGetGlyphCount => %O", json.errorCode == 0 ? "Glyph count:" + json.glyphCount : json.errorText);