Separate TextLayout result into paragraphs with ShapedTextParagraph.

Change the `Text::wrapText` implementation to use the `LineWrap::computeLineBreaks` function, so it's consistent across eepp. Also renamed the function to `Text::hardWrapText` to be more descriptive.
Added new-line support in `LineWrap::computeLineBreaks`.
This commit is contained in:
Martín Lucas Golini
2026-01-24 17:59:09 -03:00
parent baa16fe44d
commit 1789540388
13 changed files with 310 additions and 353 deletions

View File

@@ -562,8 +562,8 @@ void GitPlugin::displayTooltip( UICodeEditor* editor, const Git::Blame& blame,
blame.commitMessage.c_str() )
: blame.error );
Text::wrapText( str, PixelDensity::dpToPx( 400 ), tooltip->getFontStyleConfig(),
editor->getTabWidth() );
Text::hardWrapText( str, PixelDensity::dpToPx( 400 ), tooltip->getFontStyleConfig(),
editor->getTabWidth() );
editor->setTooltipText( str );