renumberGlyph
public static ReadableFontData renumberGlyph(ReadableFontData glyph,
java.util.Map<java.lang.Integer,java.lang.Integer> mapping)
Apply a renumbering referenced glyphs in TrueType glyph data. Note that this method has a low
level interface (bytes) for efficiency, as, in many cases the glyph data does not need to be
fully parsed. We should benchmark this implementation against one written in terms of a higher
level interface and measure the actual performance gain - if not significant, this
implementation should be scrapped in favor of the higher level one.
- Returns:
- renumbered glyph data