-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
7
-
generic
-
generic
When a portion of text in a text component is selected, it is customary to highlight line breaks, e.g. in the end of a paragraph. As of version 7, Swing renders a one-pixel vertical stripe, which is not always the best possible option (consider a heading typed in a large font - an extra pixel after it would not be noticeable at all).
One approach to consider is to allocate some space for line breaks. How exactly much space to allocate should depend on the size of the symbol preceding the line break. We could then visualize the line break in several ways: paint selection or a 'pilcrow' symbol there.
Note that currently Views responsible for line breaks have zero width. Implementing the above approach is therefore backward incompatible, since it affects layout.
One approach to consider is to allocate some space for line breaks. How exactly much space to allocate should depend on the size of the symbol preceding the line break. We could then visualize the line break in several ways: paint selection or a 'pilcrow' symbol there.
Note that currently Views responsible for line breaks have zero width. Implementing the above approach is therefore backward incompatible, since it affects layout.