Implement new TextMetrics, returned by canvas measureText()