measureText method

TextMetrics measureText(
  1. String text
)

The CanvasRenderingContext2D.measureText() method returns a TextMetrics object that contains information about the measured text (such as its width, for example).

Implementation

external TextMetrics measureText(String text);