Changes between Version 22 and Version 23 of WRAPPING_TEXT_RENDERING_R0


Ignore:
Timestamp:
05/29/09 20:57:48 (16 years ago)
Author:
vlado
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WRAPPING_TEXT_RENDERING_R0

    v22 v23  
    7878   * (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: 
    7979      
    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]] 
    8989     CLOSE_SEGMENT[[BR]] 
    9090     CLOSE_LINE[[BR]] 
    9191     CLOSE_PART[[BR]] 
    9292     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 
    93104   * (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): 
    94105    * Badness calculation