From 04a26ada69c3546bbd850e62b207a81aeb0530fe Mon Sep 17 00:00:00 2001 From: Jimmy <9859727+Quantizr@users.noreply.github.com> Date: Sat, 13 Sep 2025 00:35:12 -0700 Subject: [PATCH] jotpluggler: fix bug with char width after scaling text (#36154) fix bug with char width after scaling text --- tools/jotpluggler/datatree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/jotpluggler/datatree.py b/tools/jotpluggler/datatree.py index eb4e4ef584..4f3219dc1b 100644 --- a/tools/jotpluggler/datatree.py +++ b/tools/jotpluggler/datatree.py @@ -67,7 +67,7 @@ class DataTree: with self._ui_lock: if self._char_width is None: if size := dpg.get_text_size(" ", font=font): - self._char_width = size[0] + self._char_width = size[0] / 2 # we scale font 2x and downscale to fix hidpi bug if self._new_data: self._process_path_change()