(characters: string, size: number)
| 207 | } |
| 208 | |
| 209 | function createText(characters: string, size: number) { |
| 210 | const text = figma.createText() |
| 211 | text.fontName = {family: 'Roboto', style: 'Regular'} |
| 212 | text.characters = characters |
| 213 | text.fontSize = size |
| 214 | return text |
| 215 | } |
| 216 | |
| 217 | async function loadFonts() { |
| 218 | await figma.loadFontAsync({ family: "Roboto", style: "Regular" }) |
no outgoing calls
no test coverage detected