Changes between Version 3 and Version 4 of TEXT_JUSTIFY_R0


Ignore:
Timestamp:
05/11/10 15:01:02 (15 years ago)
Author:
boyan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_JUSTIFY_R0

    v3 v4  
    1212  * Text is aligned along both the left and right frame border; 
    1313  * 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)? 
    1515 * The algorithm for justification should be easily changeable with an alternative implementation. 
    1616 * 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. 
     
    2121 
    2222== 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. 
     23At 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). 
    2424 
    2525== Related ==