konva icon indicating copy to clipboard operation
konva copied to clipboard

Font weight 500 not working

Open aman-webdev opened this issue 1 year ago • 3 comments

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

aman-webdev avatar Jan 03 '24 08:01 aman-webdev

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

lavrton avatar Jan 03 '24 12:01 lavrton

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

aman-webdev avatar Jan 18 '24 08:01 aman-webdev

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.

lavrton avatar Mar 14 '24 22:03 lavrton