David Catuhe vor 7 Jahren
Ursprung
Commit
704a3ac20d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      gui/src/2D/controls/control.ts

+ 2 - 2
gui/src/2D/controls/control.ts

@@ -1283,9 +1283,9 @@ export class Control {
         }
 
         if (this._style) {
-            this._font = (this._style.fontWeight ? this._style.fontWeight : this._style.fontStyle) + " " + this.fontSizeInPixels + "px " + this._style.fontFamily;
+            this._font = this._style.fontStyle + " " + this._style.fontWeight + " " + this.fontSizeInPixels + "px " + this._style.fontFamily;
         } else {
-            this._font = (this._fontWeight ? this._fontWeight : this._fontStyle) + " " + this.fontSizeInPixels + "px " + this._fontFamily;
+            this._font = this._fontStyle + " " + this._fontWeight + " " + this.fontSizeInPixels + "px " + this._fontFamily;
         }
 
         this._fontOffset = Control._GetFontOffset(this._font);