Skip to content

Commit

Permalink
Font-weight was calculated incorrectly in some cases. Not anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorccu committed Sep 11, 2009
1 parent 194ff60 commit 77313c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/cufon.js
Expand Up @@ -412,8 +412,8 @@ var Cufon = (function() {
if (weight > max) weight = max;
alts.sort(function(a, b) {
return (up
? (a > weight && b > weight) ? a < b : a > b
: (a < weight && b < weight) ? a > b : a < b) ? -1 : 1;
? (a >= weight && b >= weight) ? a < b : a > b
: (a <= weight && b <= weight) ? a > b : a < b) ? -1 : 1;
});
return weights[alts[0]];
};
Expand Down

0 comments on commit 77313c0

Please sign in to comment.