You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for putting together this library, it's super-useful! I've noticed a recent change in behavior, something that used to work but doesn't any more, namely assigning generic fontFamilies to text objects. I looked into the library, but haven't been able to figure out why this is the case. Any help would be much appreciated!
Please use the drop-down menu on the right to switch between different fonts. You'll notice that some work (Times and Arial, provided they are available on your machine) while others (sans-serif and monospace) don't.
Steps to reproduce
Change a text object's fontFamily property to a known font, e.g. Times New Roman or Arial
Change the value to a generic font, such as sans-serif or monospace
Expected Behavior
The display is updated for both types of fonts.
Actual Behavior
The font family is only changed when a specific font is selected (by name, as opposed to a generic value).
The text was updated successfully, but these errors were encountered:
I'm sorry I missed your response! Just wanted to say a big thanks for fixing this, and for your incredible work on maintaining the fabric.js library. Can I get you a glass or cup of your preferred beverage somehow, or do you have a patreon link? ;-)
Thanks a lot for putting together this library, it's super-useful! I've noticed a recent change in behavior, something that used to work but doesn't any more, namely assigning generic
fontFamilies
to text objects. I looked into the library, but haven't been able to figure out why this is the case. Any help would be much appreciated!Version
2.2.3
Test Case
https://jsfiddle.net/apnqhosf/4/
Please use the drop-down menu on the right to switch between different fonts. You'll notice that some work (Times and Arial, provided they are available on your machine) while others (sans-serif and monospace) don't.
Steps to reproduce
fontFamily
property to a known font, e.g.Times New Roman
orArial
sans-serif
ormonospace
Expected Behavior
The display is updated for both types of fonts.
Actual Behavior
The font family is only changed when a specific font is selected (by name, as opposed to a generic value).
The text was updated successfully, but these errors were encountered: