HaikuDepot, text stuff: Removed work around.
* The extra glyph or white space offset no longer needs to be removed from the first glyph.
This commit is contained in:
parent
24c156daf5
commit
b935e4d54f
@ -942,12 +942,6 @@ ParagraphLayout::_DrawSpan(BView* view, BPoint offset,
|
||||
delta.nonspace = line.extraGlyphSpacing;
|
||||
delta.space = line.extraWhiteSpacing;
|
||||
|
||||
// TODO: Fix in app_server: First glyph should not be shifted by delta.
|
||||
if (text[0] == ' ')
|
||||
offset.x -= delta.space;
|
||||
else
|
||||
offset.x -= delta.nonspace;
|
||||
|
||||
view->DrawString(span.Text(), offset, &delta);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user