- if( isLastLine && !layoutParameters.isLastNewParagraph )
- {
- lineRun.width = layout.length;
- if( LTR == layout.direction )
- {
- lineRun.width += layout.whiteSpaceLengthEndOfLine;
- lineRun.extraLength = 0.f;
- }
- else
- {
- lineRun.extraLength = layout.whiteSpaceLengthEndOfLine;
- }
- }
- else
- {
- lineRun.width = layout.length;
- lineRun.extraLength = std::ceil( layout.whiteSpaceLengthEndOfLine );
- }