addSegment function

dynamic addSegment(
  1. dynamic t,
  2. dynamic code,
  3. dynamic glyphIndex
)

Implementation

addSegment(t, code, glyphIndex) {
    t.segments.push({
        "end": code,
        "start": code,
        "delta": -(code - glyphIndex),
        "offset": 0,
        "glyphIndex": glyphIndex
    });
}