Skip to content

Function: scaleTextRuns() ​

ts
function scaleTextRuns(runs, k): TextRunLines;

Experimental

Runs scaled by k (a label shrunk to fit, or resized by uniformtext): run sizes and baseline shifts are absolute px, so they scale with the label's font.

Parameters ​

ParameterType
runsTextRunLines
knumber

Returns ​

TextRunLines

Released under the MIT License.