From 80d21945114676673dfe6009ebae531a0730814d Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 30 Jun 2025 10:03:24 +0100 Subject: [PATCH] Fix: Don't include ellipsis width in RTL truncation offset. (#14400) This caused the right-most glyphs to be truncated. --- src/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx.cpp b/src/gfx.cpp index 6e12254374..646afffcf6 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -542,7 +542,7 @@ static int DrawLayoutLine(const ParagraphLayouter::Line &line, int y, int left, if (_current_text_dir == TD_RTL) { min_x += 3 * dot_width; - offset_x = w - 3 * dot_width - max_w; + offset_x = w - max_w; } else { max_x -= 3 * dot_width; }