@relvista/coreType aliasesTextMeasureOn this pageType Alias: TextMeasure type TextMeasure = (text, role) => number; Returns the rendered width in px of text in the given role's font. Parameters text string role TextRole Returns number