mooman219 / fontdue

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

Fonts with variable weight? #121

Open lassade opened 2 years ago

lassade commented 2 years ago

Hi first of all thanks for this awesome create!

Is there a way to render fonts with variable weight?

I'm currently keeping 4 or more fonts with static weights (regular, bold, italic and bold-italic), but sadly each one is around 800k kind need to binary size.

mooman219 commented 2 years ago

Sorry, there's no API to adjust the font weight right now. Maybe in the future though.

ten3roberts commented 11 months ago

What would need to be done to add font variations, such as as the weight?

It would be really useful to have this feature and be able to use variable weight ttfs files, rather than a whole directory of different weights.

I have looked into ab-glyph and cosmic-text, but this library's api is by far my favorite being so much better and nicer to use, and I would prefer to keep using it. :blush: