diff --git a/modules/juce_graphics/fonts/juce_TextLayout.cpp b/modules/juce_graphics/fonts/juce_TextLayout.cpp index 573430e0fc..df605ca567 100644 --- a/modules/juce_graphics/fonts/juce_TextLayout.cpp +++ b/modules/juce_graphics/fonts/juce_TextLayout.cpp @@ -421,6 +421,9 @@ void TextLayout::createStandardLayout (const AttributedString& text) if (text.getWordWrap() != AttributedString::none) shapedTextOptions = shapedTextOptions.withWordWrapWidth (width); + if (text.getWordWrap() == AttributedString::WordWrap::byChar) + shapedTextOptions = shapedTextOptions.withAllowBreakingInsideWord (true); + ShapedText st { text.getText(), shapedTextOptions }; std::optional lastLineNumber;