charToGlyphIndex method
dynamic
charToGlyphIndex(
- dynamic c
@param {string} c - the character @return {number} The glyph index.
Implementation
charToGlyphIndex(c) {
return this.cmap.glyphIndexMap[c.codePointAt(0)] ?? 0;
}