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

Font weight 500 not working #1696

Open
aman-webdev opened this issue Jan 3, 2024 · 3 comments
Open

Font weight 500 not working #1696

aman-webdev opened this issue Jan 3, 2024 · 3 comments

Comments

@aman-webdev
Copy link

I am trying to load and use Montserrat font with normal, bold , medium , bolditalic and italic versions, i load all the fonts in my browser.

This is how i set the font style

const fontStyle =
fontWeight === 700 && isItalic
? "italic bold"
: fontWeight === 400 && isItalic
? "italic"
: fontWeight === 700 && !isItalic
? "bold"
: fontWeight===500 && !isItalic ? "500" : "normal";

current output
image

expected output
image

@lavrton
Copy link
Member

lavrton commented Jan 3, 2024

Please make a demo.
Also, make sure all variations of that font are loaded.

@aman-webdev
Copy link
Author

aman-webdev commented Jan 18, 2024

https://jsfiddle.net/b6qkuhs8/1/
Here is the demo , i think weight 500 and 600 are not working
pls check, thanks

@lavrton
Copy link
Member

lavrton commented Mar 14, 2024

I see the issue in the demo. But I don't know what I can do here from Konva side. As I can see, konva is setting font style on 2d canvas API correctly.

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

No branches or pull requests

2 participants