December 2010
Intermediate to advanced
110 pages
2h 31m
English
CRC.measureText() — computes the width of the specified text
TextMetrics measureText(String text)textThe string of text to be measured
A TextMetrics object whose width property
specifies the width that text would occupy
if it were drawn with the current font.
measureText() measures the specified text and
returns a TextMetrics object containing the results of
the measurement. At the time of this writing, the returned object has
only a single width property, and the text height and
bounding box are not measured.
Read now
Unlock full access