revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

feat(font): Add OpenType font features #932

Closed zbaylin closed 4 years ago

zbaylin commented 4 years ago

This will integrate OpenType's font features with Harfbuzz.

Sourced from here: https://harfbuzz.github.io/shaping-opentype-features.html

zbaylin commented 4 years ago

Thanks for the approval, @bryphe! For posterity sake, anyone who is interested in playing around with the features should check out https://wakamaifondue.com/. It shows all the features any font file you have has, with examples through CSS as well. Helped me figure out how to write tests/the CLI for this, which I'm finishing up now!