textAlign property
The textAlign property sets the
horizontal alignment of text drawn using the
fillText
or the
strokeText
methods. Takes one of the possible values: start
(default), end, left, right,
center (see CSS property
text-align
for understanding these values):
Syntax
context.textAlign = value;
See also
-
the
textBaselineproperty
that aligns text vertically -
the
fontproperty
that sets a font size and type