Skip to main content

After changing the font through the plugin API, it will not function properly when trying to adjust the font weight through the panel


The target font has been loaded using figma.loadFontAsync


Normal will be restored if the user changes the currently selected layer to reload the panel contents


Error:



Figma_app.min.js.br:7 “Assertion failure: result” in mutate (FGFontMutator.cpp)




Hi there,


Thanks for flagging. As I shared with the internal team, we might need a little more investigation on this. Would you be able to file a ticket via this form, https://help.figma.com/hc/en-us/requests/new? Our technical quality team will look into it.


Thanks!

Toku


It has not been fixed for a long time. This BUG prevents all plugin related to font setting in Figma from working properly.


reappear:


let fontName = {family: 'Inter', style: 'Extra Light'}
await figma.loadFontAsync(fontName)
figma.currentPage.selection[0].fontName = fontName

As a user of the plugin, I hope it can be fixed as soon as possible, this bug will affect the experience of using the plugin.


Reply