Skip to content

Commit

Permalink
Font-size: 0 no longer causes errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorccu committed Feb 9, 2010
1 parent 2a3ae8c commit 5760a82
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/cufon.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 5760a82

Please sign in to comment.