We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7905375 commit f257fefCopy full SHA for f257fef
modules/juce_graphics/fonts/juce_TextLayout.cpp
@@ -342,7 +342,7 @@ void TextLayout::createLayoutWithBalancedLineLengths (const AttributedString& te
342
for (const auto& line : lines)
343
for (const auto& run : line->runs)
344
for (const auto& glyph : run->glyphs)
345
- advanceWidth = jmin (*advanceWidth, glyph.width);
+ advanceWidth = jmin (*advanceWidth, jmax (glyph.width, 1.0f));
346
}
347
348
maxWidth -= *advanceWidth;
0 commit comments