Advance width of text in world units, tracking included.
letter-spacing is not part of the CSS font shorthand, so a context
whose font was set from fontString(style) measures glyphs only. The
GL path (layoutRuns) adds letterSpacing after every code point
including the last, matching CSS, so this does too — and every 2D-side
width has to go through here or the two paths disagree about where a line
breaks.
Advance width of
textin world units, tracking included.letter-spacingis not part of the CSSfontshorthand, so a context whosefontwas set fromfontString(style)measures glyphs only. The GL path (layoutRuns) addsletterSpacingafter every code point including the last, matching CSS, so this does too — and every 2D-side width has to go through here or the two paths disagree about where a line breaks.