Replies: 4 comments 3 replies
-
|
What is the text inside the text object, can you show it? Is the text 'AccessibilityNew' and the font is just drawing the little icon? |
Beta Was this translation helpful? Give feedback.
-
|
yes, in the attached picture::
|
Beta Was this translation helpful? Give feedback.
-
|
Here is a demo of having the text width be only as wide as the Material Icon font icon by using a code point instead of ligature: |
Beta Was this translation helpful? Give feedback.
-
Yes, on the Google Symbols page whenever you select an icon it shows both the ligature and corresponding codepoint. There is also a more complete mapping and others have translated it to a TypeScript enum e.g. here and here.
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
when using fabric.Textbox with the fontFamily "Material Icons", the width of the selection area seems to adapt to the icon name, so we cannot reduce the width of the selection aera. For example, the icon "AccessibilityNew" has a very large selection aera, although the icon is much narrower (like all icons: one "character"). The icon "add" has a shorter selection aera. It would be good if we could reduce the selection aera with the field width. For "standard" fonts, the end of the text could be hidden (out of the selection aera).

Beta Was this translation helpful? Give feedback.
All reactions