mooman219 / fontdue

The fastest font renderer in the world, written in pure rust.
Apache License 2.0
1.38k stars 70 forks source link

Support Loading Ligature & Substitution Glyphs #140

Closed Koranir closed 10 months ago

Koranir commented 10 months ago

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 commented 10 months ago

Relevant issue: #127?

mooman219 commented 10 months ago

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