From be230bef6b4cf7b45b3ce233de0ae5f77426420c Mon Sep 17 00:00:00 2001 From: tobid7 Date: Tue, 21 Oct 2025 08:55:51 +0200 Subject: [PATCH] lithium: Fix text Spacing --- pd/lithium/source/font.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pd/lithium/source/font.cpp b/pd/lithium/source/font.cpp index 5964275..2cfb8f5 100755 --- a/pd/lithium/source/font.cpp +++ b/pd/lithium/source/font.cpp @@ -224,7 +224,7 @@ PD_LITHIUM_API fvec2 Font::GetTextBounds(const std::string &text, float scale) { x += 16 * cfs; break; case L' ': - x += 16 * cfs; + x += 4 * cfs; // Fall trough here to get the same result as in // TextCommand if/else Section default: @@ -305,7 +305,7 @@ PD_LITHIUM_API void Font::CmdTextEx(std::vector &cmds, Renderer::CmdQuad(cmd.get(), rec, cp.SimpleUV, color); off.x += cp.Size.x * cfs + 2 * cfs; } else { - off.x += 16 * cfs; + off.x += 4 * cfs; } } } @@ -316,4 +316,4 @@ PD_LITHIUM_API void Font::CmdTextEx(std::vector &cmds, } } // namespace Li -} // namespace PD \ No newline at end of file +} // namespace PD