Skip to main content

getRangeAllFontNames

Get the fontNames from characters in range start (inclusive) to end (exclusive). For variable fonts, each entry includes variationSettings.

Signature​

getRangeAllFontNames(start: number, end: number): FontName[]

Remarks​

Throws if start === end (an empty range). Only call node.getRangeAllFontNames(0, node.characters.length) when node.characters.length > 0.

For empty text, load the node's concrete fontName with figma.loadFontAsync before editing instead of enumerating a range.