Changes between Version 1 and Version 2 of TEXT_JUSTIFY_R0


Ignore:
Timestamp:
05/10/10 16:33:03 (15 years ago)
Author:
boyan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_JUSTIFY_R0

    v1 v2  
    99 
    1010== Task requirements == 
    11 ^List the necessary requirements that the task must fulfill. 
     11 * TextParagraphHud should provide a button for justified alignment. After pressing it, the text should be aligned justified, meaning: 
     12  * Text is aligned along both the left and right frame border; 
     13  * Spacing between words is equally distributed; 
     14  * Spacing between letters is not modified; 
     15 * The algorithm for justification should be easily changeable with an alternative implementation. 
     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. 
     17 * The algorithm should not significantly slow down text performance. 
    1218 
    1319== Task result == 
     
    1521 
    1622== Implementation idea == 
    17 ^Provide some rough implementation idea(s). 
     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. 
    1824 
    1925== Related == 
    20 ^Add links to related tasks that could be useful or helpful. 
     26None 
    2127 
    2228== How to demo ==