Skip to content

Commit

Permalink
Only fallback to the non-MSDF font below 1.0
Browse files Browse the repository at this point in the history
At exactly 1.0 the font gets destroyed for no reason.
While this is partially expected from non-MSDF
variations, it only makes sense to do this when the
scale is on the lossy side, i.e. below 1.0.
  • Loading branch information
YuriSizov committed Oct 30, 2024
1 parent 13bb90a commit 13e96ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions globals/WindowManager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ func _update_project_theme() -> void:
return

var scale_factor := Controller.settings_manager.get_gui_scale_factor()

if scale_factor <= 1.0:
if scale_factor < 1.0:
_project_theme.default_font.base_font = THEME_FONT_NORMAL
else:
_project_theme.default_font.base_font = THEME_FONT_MSDF
Expand Down

0 comments on commit 13e96ec

Please sign in to comment.