Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts with variable weight? #121

Open
lassade opened this issue Aug 20, 2022 · 2 comments
Open

Fonts with variable weight? #121

lassade opened this issue Aug 20, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@lassade
Copy link
Contributor

lassade commented Aug 20, 2022

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
Copy link
Owner

mooman219 commented Aug 20, 2022

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

@mooman219 mooman219 added the enhancement New feature or request label Aug 20, 2022
@ten3roberts
Copy link

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. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants