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.
This commit is contained in:
parent
06a4c38e3a
commit
09b0602fff
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user