public measureFont() as TextMetrics
Returns native ascent, descent and recommended line height for this font. Unlike measureText's documented estimates, these values come from the selected font face. Width is zero: no text run is measured by this call.
Font metrics in pixels; height may differ from ascent+descent.
painter.font = "16px Arial"; metrics = painter.measureFont()