December 2010
Intermediate to advanced
110 pages
2h 31m
English
CRC.strokeText() — draws outlined text
void strokeText(Stringtext, floatx, floaty,floatmax)
textThe text to draw in the canvas
x, yThe “anchor point” of the text in the canvas
maxAn optional maximum width for the text
strokeText() works just like
fillText() except that instead of filling the
individual character glyphs with fillStyle, it
strokes the outline of each glyph using strokeStyle.
strokeText() produces interesting graphical effects
when used at large font sizes, but fillText() is more
commonly used for actually drawing text.
Read now
Unlock full access