Soft-Wrap in Text support WIP.

This commit is contained in:
Martín Lucas Golini
2026-02-01 00:56:37 -03:00
parent 98cf4a85d7
commit b7d9fd0567
4 changed files with 280 additions and 36 deletions

View File

@@ -856,7 +856,8 @@ UTEST( FontRendering, TextWrap ) {
text.setFontSize( 16 );
text.setColor( Color::Black );
text.setString( loremIpsum );
text.hardWrapText( 500 );
text.setLineWrapMode( LineWrapMode::Word );
text.setMaxWrapWidth( 500 );
text.draw( pos.x, pos.y );
text.setAlign( TEXT_ALIGN_CENTER );