-
-
Notifications
You must be signed in to change notification settings - Fork 886
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
Comments
Please make a demo. |
https://jsfiddle.net/b6qkuhs8/1/ |
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
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
expected output
The text was updated successfully, but these errors were encountered: