From 8164e32fd7dca2d838cbbe8e687eb686cc88d05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Libor=20=C4=8Cap=C3=A1k?= Date: Sun, 5 Mar 2017 19:19:42 +0100 Subject: [PATCH] TextMetrics includes \n (#1063) there is no reason to break; --- examples/common/font/text_metrics.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/common/font/text_metrics.cpp b/examples/common/font/text_metrics.cpp index 0b2d71e0e..835c9e141 100644 --- a/examples/common/font/text_metrics.cpp +++ b/examples/common/font/text_metrics.cpp @@ -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;