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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

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

Successfully merging this pull request may close these issues.

1 participant