From 5207930169f8b952f484c8c361f5af56dae6fb52 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Thu, 10 May 2012 18:07:17 +0200 Subject: [PATCH] Fixed glyphs sometimes not shown with high font sizes --- src/SFML/Graphics/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 7733a2a1..f6f8c931 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -535,7 +535,7 @@ IntRect Font::findGlyphRect(Page& page, unsigned int width, unsigned int height) if (!row) { int rowHeight = height + height / 10; - if (page.nextRow + rowHeight >= page.texture.getSize().y) + while (page.nextRow + rowHeight >= page.texture.getSize().y) { // Not enough space: resize the texture if possible unsigned int textureWidth = page.texture.getSize().x;