Changes between Version 24 and Version 25 of WRAPPING_TEXT_RENDERING_R0
- Timestamp:
- 05/29/09 21:04:55 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WRAPPING_TEXT_RENDERING_R0
v24 v25 77 77 * EdgeKind.SEGMENT becomes the smallest unbreakable EdgeKind (atomic transition) in the algorithm. 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 80 ''Old Solution'' 81 OPEN_TEXT 82 OPEN_PART 83 OPEN_LINE 84 OPEN_SEGMENT 85 ATOM 86 CLOSE_SEGMENT 87 OPEN_SEGMENT 88 ATOM 89 CLOSE_SEGMENT 90 CLOSE_LINE 91 CLOSE_PART 92 CLOSE_TEXT 93 94 ''New Solution'' 95 OPEN_TEXT 96 OPEN_PART 97 OPEN_LINE 98 SEGMENT 99 SEGMENT 100 CLOSE_LINE 101 CLOSE_PART 102 CLOSE_TEXT 103 79 * ''Old Solution'' -> OPEN_TEXT -> OPEN_PART -> OPEN_LINE -> OPEN_SEGMENT -> ATOM -> CLOSE_SEGMENT -> OPEN_SEGMENT -> ATOM -> CLOSE_SEGMENT -> CLOSE_LINE -> CLOSE_PART -> CLOSE_TEXT 80 * ''New Solution'' -> OPEN_TEXT -> OPEN_PART -> OPEN_LINE -> SEGMENT -> SEGMENT -> CLOSE_LINE -> CLOSE_PART -> CLOSE_TEXT 104 81 * (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): 105 82 * Badness calculation