KineticJS icon indicating copy to clipboard operation
KineticJS copied to clipboard

Font weight (bold) IE bug

Open bordeux opened this issue 11 years ago • 2 comments

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 avatar Aug 22 '14 10:08 bordeux

My temporary resolve:

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

bordeux avatar Aug 22 '14 11:08 bordeux

I can confirm this. No version of IE works.

heqiao avatar Aug 29 '14 03:08 heqiao