1
0
Fork 0

Fix: Don't include ellipsis width in RTL truncation offset. (#14400)

This caused the right-most glyphs to be truncated.
pull/14401/head
Peter Nelson 2025-06-30 10:03:24 +01:00 committed by GitHub
parent 7c33a67e7b
commit 80d2194511
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ static int DrawLayoutLine(const ParagraphLayouter::Line &line, int y, int left,
if (_current_text_dir == TD_RTL) { if (_current_text_dir == TD_RTL) {
min_x += 3 * dot_width; min_x += 3 * dot_width;
offset_x = w - 3 * dot_width - max_w; offset_x = w - max_w;
} else { } else {
max_x -= 3 * dot_width; max_x -= 3 * dot_width;
} }