charToGlyphIndex method

dynamic charToGlyphIndex(
  1. dynamic s
)

Convert the given character to a single glyph index. Note that this function assumes that there is a one-to-one mapping between the given character and a glyph; for complex scripts this might not be the case. @param {string} @return {Number}

Implementation

charToGlyphIndex(s) {
  return this.encoding.charToGlyphIndex(s);
}