charToGlyphIndex method
dynamic
charToGlyphIndex(
- dynamic s
@param {string} s - The character @return {number} The index.
Implementation
charToGlyphIndex(s) {
var code = s.codePointAt(0);
var charName = this.encoding[code];
return this.charset.indexOf(charName);
}