Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for glyph index based msdfgen-ext APIs #1002

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

KitsuneAlex
Copy link
Contributor

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 codepoint
  • msdfgen::getGlyphIndex(msdfgen::FontHandle, unsigned) for retrieving the glyph index of a given codepoint
  • msdfgen::getKerning(double&, msdfgen::FontHandle, unsigned, unsigned) for retrieving the kerning between the two given unicode codepoints
  • msdfgen::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.

@Spasi Spasi force-pushed the msdfgen-glyph-indices branch from 8ce3766 to 4aaad7d Compare September 25, 2024 18:15
@Spasi Spasi merged commit e8552d5 into LWJGL:master Sep 25, 2024
@Spasi
Copy link
Member

Spasi commented Sep 26, 2024

Thank you @KitsuneAlex!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants