Hi there,
I’m currently working on a code syntax highlighting plugin for Figma but I’m running into problems that are very hard for me to debug or pin down the problem. (Probably related to the JS runtime running in WASM.)
Here is what I’m trying to do:
- Creating a
TextNode
viafigma.createText()
- Set all sorts of properties (fontName, fontSize, …)
Here are the error messages I’m seeing:
-
Happens when I’m setting a non-existing font family:
-
Happens when I’m trying to set
fontSize
: