yeslogic / allsorts

Font parser, shaping engine, and subsetter implemented in Rust
https://yeslogic.com/blog/allsorts-rust-font-shaping-engine/
Apache License 2.0
706 stars 23 forks source link

Variable fonts #51

Open LoganDark opened 2 years ago

LoganDark commented 2 years ago

Is there any way to load a variable font and then get outlines at different weights? Will I have to parse tables and stuff manually like I have to do for outlines?

wezm commented 2 years ago

Is there any way to load a variable font and then get outlines at different weights?

No, sorry we don't support variable fonts yet.

Will I have to parse tables and stuff manually like I have to do for outlines?

Just in case you missed it, support for accessing outlines was added in the 0.6 release: https://yeslogic.com/blog/allsorts-rust-font-shaping-engine-0-6/#glyph-positioning-and-contours

LoganDark commented 2 years ago

support for accessing outlines was added in the 0.6 release

by manually parsing tables. There's a LOT of work needed to get outlines. The only way you can find your way is by copy-pasting long examples from the documentation :(

LoganDark commented 1 year ago

I'd be willing to sponsor development of this feature in the coming months, if you're interested. I'm very interested in using allsorts for interactive user interfaces