Canvas text metrics
Widely available since 2018-01-29 (baseline high)
The fillText()
and strokeText()
methods draw text to a 2D canvas. The measureText()
method measures the width and other metrics which can be used to position the text.
Compatibility
- Chrome 2 Released on 2009-05-21
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 3.5 Released on 2009-06-30
- Firefox for Android 31 Released on 2014-07-22
- Safari 4 Released on 2009-06-08
- Safari on iOS 3.2 Released on 2010-04-03