Skip to content

Instantly share code, notes, and snippets.

@sv99
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sv99/6c197324580e4d4df59d to your computer and use it in GitHub Desktop.
Save sv99/6c197324580e4d4df59d to your computer and use it in GitHub Desktop.
Set font style

##Font Size, Face, Weight, and Style Basics

It is very easy to style text that will be rendered on the canvas. It requires you to set the size, weight, style, and font face in a CSS-compliant text string that is applied to the context.font property. The basic format looks like this:

[font style] [font weight] [font size] [font face]

canvas.font property not set if not set params in right sequence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment