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:
parent
79053759a5
commit
f257fef7f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue