Function: estimateTextWidth()
function estimateTextWidth(text, role): number;
Deterministic text width estimate (no DOM), used in Node, SSR and as the default measure.
Browsers may pass a canvas-based TextMeasure for exact widths. Column types are drawn in
monoFontFamily, so they are estimated as fixed-width (0.6 em per glyph, wide glyphs twice).
Parameters
text
string
role
Returns
number