ericdrowell / KineticJS

KineticJS is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://www.kineticjs.com
3.98k stars 752 forks source link

Font weight (bold) IE bug #1001

Open bordeux opened 10 years ago

bordeux commented 10 years ago

I found Bug in kinetic.

bug font-weight

Result is: result

so... _getContextFont = bold normal 255px Helvetica

bold is rewrited by normal, in result font is normal, not bold :(

bordeux commented 10 years ago

My temporary resolve:

        _getContextFont: function() {
            var fontVariant = this.getFontVariant().replace("normal", "");
            return this.getFontStyle() + SPACE + fontVariant + SPACE + this.getFontSize() + PX_SPACE + this.getFontFamily();
        },<
heqiao commented 10 years ago

I can confirm this. No version of IE works.