Skip to main content

Function: determineCorrectFontSizeAndLines()

determineCorrectFontSizeAndLines(curFontSize, fontData, region, linesToBreak, sizeRange): [number, string[] | null, number | null]

Determine what the font size for a text element should be, taking autosizing into account.

Parameters​

curFontSize​

number

fontData​

FontData

region​

Region

linesToBreak​

string[]

sizeRange​

SizeRange

Returns​

[number, string[] | null, number | null]

Deprecated​

Old Text system, Transition to new system when Autosizing has been brought across in a way that makes sense.