Browse Source

Quick fix for GUI font

David Catuhe 7 years ago
parent
commit
b7e156d11a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/src/2D/controls/control.ts

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

@@ -960,7 +960,7 @@ export class Control {
     /** @hidden */
     /** @hidden */
     protected _applyStates(context: CanvasRenderingContext2D): void {
     protected _applyStates(context: CanvasRenderingContext2D): void {
         if (this._isFontSizeInPercentage) {
         if (this._isFontSizeInPercentage) {
-            this._resetFontCache();
+            this._fontSet = true;
         }
         }
 
 
         if (this._fontSet) {
         if (this._fontSet) {