allsorts icon indicating copy to clipboard operation
allsorts copied to clipboard

Variable fonts

Open LoganDark opened this issue 3 years ago • 3 comments

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?

LoganDark avatar Jan 07 '22 19:01 LoganDark

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

wezm avatar Jan 08 '22 01:01 wezm

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 avatar Jan 08 '22 01:01 LoganDark

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

LoganDark avatar Jul 10 '22 23:07 LoganDark