Name
TextMetrics — measurements of a string of text
Properties
width
The width of the specified text
Description
A TextMetrics object is returned by the
measureText()
method of CanvasRenderingContext2D. Its
width
property holds the width of the measured text,
in CSS pixels.
See Also
Get Canvas Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.