Changes between Version 25 and Version 26 of WRAPPING_TEXT_RENDERING_R0
- Timestamp:
- 05/29/09 21:05:38 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WRAPPING_TEXT_RENDERING_R0
v25 v26 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 * ''Old Solution'' ->OPEN_TEXT -> OPEN_PART -> OPEN_LINE -> OPEN_SEGMENT -> ATOM -> CLOSE_SEGMENT -> OPEN_SEGMENT -> ATOM -> CLOSE_SEGMENT -> CLOSE_LINE -> CLOSE_PART -> CLOSE_TEXT80 * ''New Solution'' ->OPEN_TEXT -> OPEN_PART -> OPEN_LINE -> SEGMENT -> SEGMENT -> CLOSE_LINE -> CLOSE_PART -> CLOSE_TEXT79 * ''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 81 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): 82 82 * Badness calculation