From 5e2afc8bfe6a5412d82f46ffadd862acff1d0be9 Mon Sep 17 00:00:00 2001 From: defnotken Date: Wed, 17 Dec 2025 23:19:18 -0600 Subject: [PATCH] Fixed Sestring font + offset --- LightlessSync/Utils/SeStringUtils.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/LightlessSync/Utils/SeStringUtils.cs b/LightlessSync/Utils/SeStringUtils.cs index 186db83..1c71204 100644 --- a/LightlessSync/Utils/SeStringUtils.cs +++ b/LightlessSync/Utils/SeStringUtils.cs @@ -545,12 +545,15 @@ public static class SeStringUtils { drawList ??= ImGui.GetWindowDrawList(); + var usedFont = font ?? ImGui.GetFont(); var drawParams = new SeStringDrawParams { - Font = font ?? ImGui.GetFont(), + Font = usedFont, + FontSize = usedFont.FontSize, Color = ImGui.GetColorU32(ImGuiCol.Text), WrapWidth = wrapWidth, - TargetDrawList = drawList + TargetDrawList = drawList, + ScreenOffset = ImGui.GetCursorScreenPos() }; ImGuiHelpers.SeStringWrapped(seString.Encode(), drawParams);