浏览代码

Quick fix for GUI font

David Catuhe 7 年之前
父节点
当前提交
b7e156d11a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 */
     protected _applyStates(context: CanvasRenderingContext2D): void {
         if (this._isFontSizeInPercentage) {
-            this._resetFontCache();
+            this._fontSet = true;
         }
 
         if (this._fontSet) {