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. |