Changes between Version 3 and Version 4 of TEXT_JUSTIFY_R0
- Timestamp:
- 05/11/10 15:01:02 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TEXT_JUSTIFY_R0
v3 v4 12 12 * Text is aligned along both the left and right frame border; 13 13 * Spacing between words is equally distributed; 14 * Spacing between letters is not modified (unless there is a single word on a given segment/line);14 * TODO How do we handle spacing between letters? What about single words on a line (if they are long, adding spaces seems sensible, if they are short, it will look ugly)? 15 15 * The algorithm for justification should be easily changeable with an alternative implementation. 16 16 * If the suggested algorithm requirements tend to produce bad layout (whitespace rivers, loose lines, etc.) or downgrade the performance by more than 20% (measured by the text performance tests run on left-aligned and justified text), they might be changed. … … 21 21 22 22 == Implementation idea == 23 At this revision we want something simple - we take the width of the segment/line, take out the width of the text, and distribute the space equally between words. 23 At this revision we want something simple - we take the width of the segment/line, take out the width of the text, and distribute the space equally between words. Another approach is to distribute 80% of the space between words and the rest between letters (theoretically this should tend to produce better results). 24 24 25 25 == Related ==