glyphByUnicode static method

int glyphByUnicode(
  1. dynamic cff,
  2. int code
)

Implementation

static int glyphByUnicode(cff, int code) {
  for (int i = 0; i < cff.charset.length; i++)
    if (cff.charset[i] == code) return i;
  return -1;
}