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

TextLayout: Fix ignored AttributedText::getLineSpacing() parameter

This commit is contained in:
attila 2024-07-22 13:15:06 +02:00
parent 5de96da34d
commit 04d9d36b15
3 changed files with 18 additions and 3 deletions

View file

@ -421,7 +421,8 @@ void TextLayout::createStandardLayout (const AttributedString& text)
.withLanguage (SystemStats::getUserLanguage())
.withTrailingWhitespacesShouldFit (false)
.withJustification (justification)
.withReadingDirection (getTextDirection (text));
.withReadingDirection (getTextDirection (text))
.withAdditiveLineSpacing (text.getLineSpacing());
if (text.getWordWrap() != AttributedString::none)
shapedTextOptions = shapedTextOptions.withMaxWidth (width);