figma / plugin-typings

Typings for the Figma Plugin API
MIT License
195 stars 45 forks source link

Set custom fontWeight on TextNode #248

Closed asevich closed 1 year ago

asevich commented 1 year ago

Is it possible to set a random font weight via plugin api? I can set fontName to a something like

{
  family: "Inter",
  style: "Regular"
}

which will correspond to fontWeight == 400, but if I want to set it to something in between, i.e. 450?

ymichael commented 1 year ago

hi @asevich, this isn't possible today!