-
Notifications
You must be signed in to change notification settings - Fork 516
8314482: TextFlow: TabStopPolicy #1744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
8314482: TextFlow: TabStopPolicy #1744
Conversation
This reverts commit 0e9e8ee.
👋 Welcome back angorya! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
/csr |
@andy-goryachev-oracle has indicated that a compatibility and specification (CSR) request is needed for this pull request. @andy-goryachev-oracle please create a CSR request for issue JDK-8314482 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
@andy-goryachev-oracle |
Tab Stop Policy
Andy Goryachev
andy.goryachev@oracle.com
Summary
Introduce a
tabStopPolicy
property in theTextFlow
class which, when set, overrides the existingtabSize
value and provides consistent way of setting tab stops at the paragraph level, regardless of the individual text
segments font [0].
Goals
The goal of this proposal is to provide a better way for controlling tab stops in the
TextFlow
containing rich text.Non-Goals
The following are not the goals of this proposal:
alignment
leader
property (symbols to fill the empty space before the tab stop)firstLineIndent
propertyTextFlow::tabsize
propertyMotivation
The existing
tabSize
property in theTextFlow
is inadequate for representing tab stops when the contentcontains text with different font sizes.
In addition to that, a rich text editor might require support for user-customizable tab stops, similar to that provided
in RTF or MS Word documents.
Description
TextFlow
TabStopPolicy
TabStop
Alternatives
None known.
Risks and Assumptions
Possible incompatibility with custom controls which extend
TextFlow
and declare a property with the same name.Dependencies
None.
References
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1744/head:pull/1744
$ git checkout pull/1744
Update a local copy of the PR:
$ git checkout pull/1744
$ git pull https://git.openjdk.org/jfx.git pull/1744/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1744
View PR using the GUI difftool:
$ git pr show -t 1744
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1744.diff
Using Webrev
Link to Webrev Comment