codeToGlyph method

dynamic codeToGlyph(
  1. dynamic code
)

Implementation

codeToGlyph(code) {
  var g = Typr_U.codeToGlyph(this, code);
  if (this.GSUB) {
    var gls = [g];
    for (final n in this.enabledGSUB.keys) {
      var l = this.GSUB.lookupList[n];
      Typr_U.applySubs(gls, 0, l, this.GSUB.lookupList);
    }
    if (gls.length == 1) return gls[0];
  }
  return g;
}