1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

TooltipWindow: Enable by-char breaking for the tooltip text

This commit is contained in:
Oli 2025-08-01 15:48:25 +01:00 committed by Attila Szarvas
parent 8dc4dcd56b
commit 8741f900e7

View file

@ -59,6 +59,7 @@ struct LookAndFeelHelpers
const int maxToolTipWidth = 400;
AttributedString s;
s.setWordWrap (AttributedString::WordWrap::byChar);
s.setJustification (Justification::centred);
s.append (text, FontOptions (tooltipFontSize, Font::bold).withMetricsKind (metrics), colour);