Skip to main content
Question

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

  • November 28, 2023
  • 3 replies
  • 324 views

Moonvy

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)

This topic has been closed for comments

3 replies

y_toku
Figmate
  • Community Support
  • 2370 replies
  • November 30, 2023

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


Moonvy
  • Author
  • 1 reply
  • January 7, 2024

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 

  • 1 reply
  • January 8, 2024

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings