From 8b184dd638ffbeeab9f0178fbcc5704e3624e0c1 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 22 Dec 2025 22:24:10 +0800 Subject: [PATCH] corrupt scaler fix test --- koboldcpp.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index df0924dde..597c90164 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -4987,10 +4987,6 @@ def show_gui(): return False corrupt_scaler = get_problematic_scaler() - if corrupt_scaler: - print("You seem to be using Wayland - because of increased reports of scaling issues, we will fallback to Bitmap Fonts. Don't worry about the error after this.") - #intentionally break fontconfig, forcing bitmap fonts - os.environ["FONTCONFIG_FILE"] = "nonexistent" # if args received, launch if len(sys.argv) != 1 and not args.showgui: @@ -5027,6 +5023,9 @@ def show_gui(): windowheight = original_windowheight ctk.set_appearance_mode("dark") root = ctk.CTk(fg_color="#2b2b2b") + if corrupt_scaler: + print("Adjusting tk scaling to try and fix scaling issues...") + root.tk.call('tk','scaling',2) root.geometry(str(windowwidth) + "x" + str(windowheight)) root.title(f"KoboldCpp v{KcppVersion}")