mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Soft-Wrap in Text support WIP.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user