lwjgl3
lwjgl3 copied to clipboard
Add support for glyph index based msdfgen-ext APIs
This PR adds support for the following msdfgen-ext functions:
msdfgen::loadGlyph(msdfgen::Shape, msdfgen::FontHandle, msdfgen::GlyphIndex, int)for loading glyphs by their glyph ID directly instead of their codepointmsdfgen::getGlyphIndex(msdfgen::FontHandle, unsigned)for retrieving the glyph index of a given codepointmsdfgen::getKerning(double&, msdfgen::FontHandle, unsigned, unsigned)for retrieving the kerning between the two given unicode codepointsmsdfgen::getKerning(double&, msdfgen::FontHandle, msdfgen::GlyphIndex, msdfgen::GlyphIndex)for retrieving the kerning between the two given glyphs referenced by their indices
This allows using this library in conjunction with other libraries like harfbuzz.