Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Commit

Permalink
added 'font' style setting to canvas plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
getify committed Jul 20, 2013
1 parent 11f8ab8 commit 2416dd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions canvas.h5ive.js
Expand Up @@ -47,6 +47,7 @@
function setStyles(styles) {
styles = styles || {};

if ("font" in styles) CONTEXT.font = styles.font;
if ("composite" in styles) CONTEXT.globalCompositeOperation = styles.composite;
if ("alpha" in styles) CONTEXT.globalAlpha = styles.alpha;
if (styles.stroke) {
Expand Down

0 comments on commit 2416dd6

Please sign in to comment.