Width in px of text set at size px in fontFamily, measured on a shared canvas. style is what goes before the size in a CSS font, such as "italic" or "600". Without a canvas (outside a browser) it estimates 0.58 em per character.
text
size
fontFamily
style
Width in px of
textset atsizepx infontFamily, measured on a shared canvas.styleis what goes before the size in a CSS font, such as "italic" or "600". Without a canvas (outside a browser) it estimates 0.58 em per character.