Changes between Version 22 and Version 23 of WRAPPING_TEXT_RENDERING_R0
- Timestamp:
- 05/29/09 20:57:48 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WRAPPING_TEXT_RENDERING_R0
v22 v23 78 78 * (advantage) The number of transitions in the algorithm vastly decrease, generally resulting in a better layout performance. Here is an example for a one line text with 2 segments: 79 79 80 ''Old Solution'' ''New Solution''[[BR]]81 OPEN_TEXT OPEN_TEXT[[BR]]82 OPEN_PART OPEN_PART[[BR]]83 OPEN_LINE OPEN_LINE[[BR]]84 OPEN_SEGMENT SEGMENT[[BR]]85 ATOM SEGMENT[[BR]]86 CLOSE_SEGMENT CLOSE_LINE[[BR]]87 OPEN_SEGMENT CLOSE_PART[[BR]]88 ATOM CLOSE_TEXT[[BR]]80 ''Old Solution''[[BR]] 81 OPEN_TEXT[[BR]] 82 OPEN_PART[[BR]] 83 OPEN_LINE[[BR]] 84 OPEN_SEGMENT[[BR]] 85 ATOM[[BR]] 86 CLOSE_SEGMENT[[BR]] 87 OPEN_SEGMENT[[BR]] 88 ATOM[[BR]] 89 89 CLOSE_SEGMENT[[BR]] 90 90 CLOSE_LINE[[BR]] 91 91 CLOSE_PART[[BR]] 92 92 CLOSE_TEXT[[BR]] 93 94 ''New Solution''[[BR]] 95 OPEN_TEXT[[BR]] 96 OPEN_PART[[BR]] 97 OPEN_LINE[[BR]] 98 SEGMENT[[BR]] 99 SEGMENT[[BR]] 100 CLOSE_LINE[[BR]] 101 CLOSE_PART[[BR]] 102 CLOSE_TEXT[[BR]] 103 93 104 * (drawback) EdgeKind.SEGMENT has to be more complex to handle the following cases, some of which make more sense to a segment as a whole (in the old solution the responsibilities were spread between OPEN_SEGMENT, CLOSE_SEGMENT and ATOM EdgeKinds): 94 105 * Badness calculation