textBaseline property
Gets or sets the current settings for the font baseline alignment.
![]() ![]() |
Syntax
object.put_textBaseline(
string
v);object.get_textBaseline(
string
* p);
Property values
Type: string
-
The top of the em square.
-
The hanging baseline
-
The middle of the em square.
-
Default. The alphabetic baseline.
-
The ideographic baseline.
-
The bottom of the em square.
Standards information
- HTML Canvas 2D Context, Section 11
Remarks
The possible values correspond to alignment points in the font. Any other values are ignored.
Show:

