diff --git a/Source/Engine/UI/GUI/Common/Label.cs b/Source/Engine/UI/GUI/Common/Label.cs index d549a9d85..196bbb2b6 100644 --- a/Source/Engine/UI/GUI/Common/Label.cs +++ b/Source/Engine/UI/GUI/Common/Label.cs @@ -77,7 +77,19 @@ namespace FlaxEngine.GUI public FontReference Font { get => _font; - set => _font = value; + set + { + if (_font != value) + { + _font = value; + + if (_autoWidth || _autoHeight || _autoFitText) + { + _textSize = Vector2.Zero; + PerformLayout(); + } + } + } } ///