David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
704a3ac20d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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) {
         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 {
         } 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);
         this._fontOffset = Control._GetFontOffset(this._font);