/

HTML / CSS / JavaScript Tutorial

JavaScript canvas2d object property: textBaseline

[this page | pdf | back links]

The textBaseline property of the JavaScript DOM object returned by the getContext("2d") method applied to the HTML <canvas> element sets / returns the text baseline for current text.

 

It can take the following values: alphabetic (default), top, hanging, middle, ideographic, bottom. These are not always interpreted in the same manner in all browsers.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile