Skip to main content
Moonvy
Nov 28, 2023 9:49 AM UTC
Question

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

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 replies.

3 replies

y_toku
Figmate
Community Support
Nov 30, 2023 11:48 PM UTC

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
MoonvyAuthor
Jan 7, 2024 7:28 AM UTC

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 
Jan 8, 2024 8:27 AM UTC

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.