Permalink
Browse files

Opera 9.2 is now supported (down from 9.5). Closes #200. Thanks to Mo…

…uvedia for bothering me enough to properly investigate this.
  • Loading branch information...
1 parent 87045f4 commit 6c3ad9e9577bb4ebb34df845606c2012fda36003 @sorccu committed Aug 2, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/cufon.js
View
@@ -1406,6 +1406,10 @@ Cufon.registerEngine('canvas', (function() {
if (!glyph) continue;
if (glyph.d) {
g.beginPath();
+ // the following moveTo is for Opera 9.2. if we don't
+ // do this, it won't forget the previous path which
+ // results in garbled text.
+ g.moveTo(0, 0);
if (glyph.code) interpret(glyph.code, g);
else glyph.code = generateFromVML('m' + glyph.d, g);
g.fill();

0 comments on commit 6c3ad9e

Please sign in to comment.