TextMetrics includes \n (#1063)

there is no reason to break;
This commit is contained in:
Libor Čapák
2017-03-05 19:19:42 +01:00
committed by Branimir Karadžić
parent ed4c70631b
commit 8164e32fd7

View File

@@ -51,7 +51,6 @@ void TextMetrics::appendText(FontHandle _fontHandle, const char* _string)
m_lineGap = font.lineGap;
m_lineHeight = font.ascender - font.descender;
m_x = 0;
break;
}
m_x += glyph->advance_x;
@@ -98,7 +97,6 @@ void TextMetrics::appendText(FontHandle _fontHandle, const wchar_t* _string)
m_lineGap = font.lineGap;
m_lineHeight = font.ascender - font.descender;
m_x = 0;
break;
}
m_x += glyph->advance_x;