1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-08 23:24:19 +00:00

TextLayout: Fix hang when shaping text containing a zero-width glyph

This commit is contained in:
attila 2025-11-06 16:41:59 +01:00 committed by Attila Szarvas
parent 79053759a5
commit f257fef7f7

View file

@ -342,7 +342,7 @@ void TextLayout::createLayoutWithBalancedLineLengths (const AttributedString& te
for (const auto& line : lines)
for (const auto& run : line->runs)
for (const auto& glyph : run->glyphs)
advanceWidth = jmin (*advanceWidth, glyph.width);
advanceWidth = jmin (*advanceWidth, jmax (glyph.width, 1.0f));
}
maxWidth -= *advanceWidth;