MENU
Basics
fillText(text,x,y[,maxWidth]) draws filled text.
strokeText(text,x,y[,maxWidth]) draws text without any interior filling (outline only).
measureText(text).width returns the width of the specified text, in pixels.
textAlign stores the alignment for text content. The value can be 'start', 'end', 'center', 'left' or 'right'.
For instance, setting a value of 'end' or 'right' will cause the text to end at the specified location.
textBaseline stores the text baseline. The value can be 'alphabetic', 'top', 'hanging', 'middle', 'ideographic', or 'bottom'.
font stores a list of space-separated font properties.