Changes between Version 1 and Version 2 of TEXT_LAYOUT_COMMONS
- Timestamp:
- 03/04/10 10:21:15 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified TEXT_LAYOUT_COMMONS
v1 v2 8 8 == Overview == 9 9 10 The current Hot Layout has several important issues: 11 * It is not known how will hyphenation be integrated with it; 12 * Spell check underlining is not currently possible; 13 * Text links cannot have foreground color; 14 * Pressing "Tab" inserts 4 spaces, instead of a real tab; 15 * Performance issues - Segment layouts could not be cached, which means that their redrawing is very slow. 10 16 11 17 == Task requirements == 12 18 19 * Modify the layout basics, so that: 20 * Tab will be functional; 21 * Future features (hyphenation, spell check, links foreground) will be achievable; 22 * Performance will not degrade. If possible, it should be improved. 23 * In the design section, describe: 24 * What changes will be made to the layout mechanism; 25 * What causes theses changes, what will the effect be; 26 * In the implementation, describe: 27 * Implementation idea for hyphenation; 28 * Implementation idea for spell check and foreground highlighting. 13 29 14 30 == Task result == 15 31 32 Source code, basics for the tasks mentioned. 16 33 17 34 == Implementation idea == 35 Drop TextLayout, LineBreakMeasurer and AttributedCharacterIterator - use Font instead. This will allow deleting of most of the HotSegmentLayout contents. Several utility methods will also be deleted. Hooray :) 18 36 19 37 20 38 == Related == 21 39 40 [wiki:TEXT_LAYOUT_LAZY]. 41 22 42 23 43 == How to demo == 24 44 45 Play around with a text frame - show affine transforms, wrapping modes, chaining, navigation, etc. 25 46 26 47 = Design =