From 09b0602fff09600ec6ad4f1f5bc05fe2ec606a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 21 Feb 2014 09:51:52 +0100 Subject: [PATCH] Tracker: Revert not offsetting the text. It actually looked better before. It completely depends on the first and last letter of the text whether there is a pixel too much on the left or right. On average, it looks better with the offset, since the string width often includes the spacing needed before the next glyph on the right, while the string touches the bounding box on the left. What should be changed is how tight everything is in general, the selection box should simply extend more outward. But I don't really feel like diving into that right now. --- src/kits/tracker/TextWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/tracker/TextWidget.cpp b/src/kits/tracker/TextWidget.cpp index 71097b44a0..5686abaaf9 100644 --- a/src/kits/tracker/TextWidget.cpp +++ b/src/kits/tracker/TextWidget.cpp @@ -540,7 +540,7 @@ BTextWidget::Draw(BRect eraseRect, BRect textRect, float, BPoseView* view, BPoint loc; loc.y = textRect.bottom - view->FontInfo().descent; - loc.x = textRect.left; + loc.x = textRect.left + 1; const char* fittingText = fText->FittingText(view);