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:
Stephan Aßmus 2014-02-20 17:55:45 +01:00
parent 24c156daf5
commit b935e4d54f
1 changed files with 0 additions and 6 deletions

View File

@ -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);
}