Version 6 (modified by dido, 16 years ago) (diff) |
---|
Analysis
Overview
Task requirements
- Add basic text wrapping around a Frame with a higher z-order than the current Frame.
- Text will be flowed line by line following the example:
- Wrapping options
- none - text is not wrapped
- before - text wraps only on the left side
- after - text wraps only on the right side
- parallel (default) - text wraps from both sides
- Default option (parallel).
- In this revision only the parallel will be implemented. However the others remains optional.
Task result
The result of this task is source code.
Implementation idea
- The text layout is based on HillClimbing algorithm.
- Flowing text not only to a single area, but also to a list of areas (having different shapes) is available.
- From the area of the current Frame subtract all intersecting Frames' areas and produce a list of areas.
- Pass the list to the algorithm.
Related
How to demo
See WRAPPING_TEXT_RENDERING_R0
Design
(Describe your design here.)
Implementation
(Describe and link the implementation results here (from the wiki or the repository).)
Testing
(Place the testing results here.)
Comments
(Write comments for this or later revisions here.)