From 6846b71ea4755f1774af8f1dc4806e9b6593898b Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 20 Dec 2012 13:59:51 +0000 Subject: [PATCH] Minor tweak to the GlyphArrangement word-splitting algorithm. --- modules/juce_graphics/fonts/juce_GlyphArrangement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp b/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp index e3e8586c1e..c9d7bc6052 100644 --- a/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp +++ b/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp @@ -478,7 +478,7 @@ void GlyphArrangement::addFittedText (const Font& f, // can't find a suitable break, so try looking backwards.. i = searchStartIndex; - for (int back = 1; back < jmin (5, i - startIndex - 1); ++back) + for (int back = 1; back < jmin (7, i - startIndex - 1); ++back) { if (glyphs.getReference (i - back).isWhitespace() || glyphs.getReference (i - back).getCharacter() == '-')