charToGlyphIndex method

dynamic charToGlyphIndex(
  1. dynamic c
)

@param {string} c - the character @return {number} The glyph index.

Implementation

charToGlyphIndex(c) {
  return this.cmap.glyphIndexMap[c.codePointAt(0)] ?? 0;
}