HTML5 Canvas Text Baseline Tutorial

To vertically align text with HTML5 Canvas, we can use the textBaseline property of the canvas context. textBaseline can be set with one of the following values: top, hanging, middle, alphabetic, ideographic, and bottom.  Unless otherwise specified, the textBaseline property is defaulted to alphabetic.

Open in new window

Code Editor

Modified on April 9th, 2013 by Eric Rowell
comments powered by Disqus