I am developing a plugin for Figma, and I have been trying to modify the default font family that the UI uses by default, however, any attempt to force a custom font via CSS did not work.
I am starting to wonder if this is really possible.
So for trying to change the font family, in the ui.html file, in the section, I have something like the code below. I have my font file in a folder named “fonts” inside the plugin folder.
@font-face {
font-family: 'myExampleFont-Regular';
src: url('./fonts/myExampleFont-Regular.otf');
font-style: normal;
font-weight: 400;
}
.someSpanClassElement{
....bla
bla
bla...
font-family: 'myExampleFont-Regular';
}
Any tips, or confirmation that changing plugin UI font-family is not possible will be much appreciated.