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 Loading Ligature & Substitution Glyphs #140

Merged
merged 3 commits into from
Sep 4, 2023
Merged

Support Loading Ligature & Substitution Glyphs #140

merged 3 commits into from
Sep 4, 2023

Conversation

Koranir
Copy link
Contributor

@Koranir Koranir commented Aug 24, 2023

Adds an optional (off by default) feature that loads the glyphs for ligatures & substitutions.

This makes it so that glyphs that have been shaped by some other crate (allsorts, rustybuzz) to actually render if they formed a ligature or substitution.

Using the allsorts crate to shape Cascadia Code with ligatures:
Example without ligature loading (note that the ligatures, after being shaped, do not get rendered):
image
Example with:
image

@Koranir
Copy link
Contributor Author

Koranir commented Aug 24, 2023

Relevant issue: #127?

@mooman219
Copy link
Owner

Sorry for the delay, this is great. Can we swap it to being a flag on FontSettings and I'll merge it?

@mooman219 mooman219 merged commit 0c3edfe into mooman219:master Sep 4, 2023
1 of 4 checks passed
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.

2 participants