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

Support custom character to glyph mapping #4

Open
jminer opened this issue Jun 29, 2022 · 0 comments
Open

Support custom character to glyph mapping #4

jminer opened this issue Jun 29, 2022 · 0 comments

Comments

@jminer
Copy link
Owner

jminer commented Jun 29, 2022

I'm not sure I care enough to support custom character to glyph mapping, but it should be possible to do cross-platform. However, Core Text is really different than DirectWrite.

With DirectWrite, it's possible to modify the glyph array that GetGlyphs() returns before passing it to GetGlyphPlacements().

For Core Text, you can create a CTGlyphInfo object and store it in a attributed string using kCTGlyphInfoAttributeName, as this answer says:

https://stackoverflow.com/questions/20327980/getting-glyph-names-using-core-text

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

No branches or pull requests

1 participant