HTML and CSS Reference
Canvas Text and CSS
The first thing you need to know about text on HTML5 Canvas is that it does not use CSS
for style. While the properties of HTML5 Canvas look similar to CSS properties, they are not
interchangeable. While your knowledge of CSS will help you understand text on the HTML5
said,CanvascantakeadvantageoffontsdefinedinaCSSfileusing @font-face ,andcanfall
back to multiple different fonts if the defined font is not available.