Skip to content

Commit

Permalink
Fix pt font size. Thanks goes to Christophe VG for finding and fixing…
Browse files Browse the repository at this point in the history
… this.

git-svn-id: https://explorercanvas.googlecode.com/svn/trunk@69 fd59bba8-8519-0410-9389-e36bf2bdbbd6
  • Loading branch information
[email protected] committed Oct 21, 2009
1 parent 952e68f commit 9d308a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion excanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ if (!document.createElement('canvas').getContext) {
} else if(style.size.indexOf('%') != -1) {
computedStyle.size = (canvasFontSize / 100) * fontSize;
} else if (style.size.indexOf('pt') != -1) {
computedStyle.size = canvasFontSize * (4/3) * fontSize;
computedStyle.size = fontSize / .75;
} else {
computedStyle.size = canvasFontSize;
}
Expand Down

0 comments on commit 9d308a9

Please sign in to comment.