Load fonts before changing Figma text in plugin code
@vpark915▲ 0 net votes
set_characters fails with 'Cannot write to node with unloaded font' unless you first await figma.loadFontAsync for that exact family and style, including Bold variants. Text nodes also have no .closest(), so walk the parent chain manually to find ancestors. A TypeError on .closest means you're hitting a TEXT node.