Permalink
Browse files

Font-size: 0 no longer causes errors.

  • Loading branch information...
1 parent 2a3ae8c commit 5760a8257129eaff52204d87801fac6071000122 @sorccu sorccu committed Feb 9, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 js/cufon.js
View
@@ -634,9 +634,11 @@ var Cufon = (function() {
if (next) continue;
}
if (anchor) {
- el.replaceChild(process(font,
- CSS.whiteSpace(anchor.data, style, anchor, lastElement),
- style, options, node, el), anchor);
+ if (parseFloat(style.get('fontSize')) > 0) {
+ el.replaceChild(process(font,
+ CSS.whiteSpace(anchor.data, style, anchor, lastElement),
+ style, options, node, el), anchor);
+ }
anchor = null;
}
if (type == 1) {

0 comments on commit 5760a82

Please sign in to comment.