nameToGlyph method

dynamic nameToGlyph(
  1. dynamic name
)

Implementation

nameToGlyph(name) {
  var glyphIndex = this.nameToGlyphIndex(name);
  var glyph = this.glyphs.get(glyphIndex);
  if (!glyph) {
      // .notdef
      glyph = this.glyphs.get(0);
  }

  return glyph;
}