1. allertonm
  2. jqplot-indicee

Commits

ma...@bryant.indicee.com  committed 2f1ded1

Adding support for fontWeight/fontStyle to title renderer.

  • Participants
  • Parent commits 278d65e
  • Branches default

Comments (0)

Files changed (2)

File src/jqplot.core.js

View file
         // prop: fontSize
         // css font-size spec for the text.
         this.fontSize ;
+        // prop: fontWeight
+        // css font-weight spec for the text.
+        this.fontWeight ;
+        // prop: fontStyle
+        // css font-style spec for the text.
+        this.fontStyle ;
         // prop: textAlign
         // css text-align spec for the text.
         this.textAlign;

File src/jqplot.divTitleRenderer.js

View file
             if (this.fontFamily) {
                 styles['fontFamily'] = this.fontFamily;
             }
+            if (this.fontWeight) {
+                styles['fontWeight'] = this.fontWeight;
+            }
+            if (this.fontStyle) {
+                styles['fontStyle'] = this.fontStyle;
+            }
 
             this._elem.css(styles);
             this._elem.text(this.text);