-
Notifications
You must be signed in to change notification settings - Fork 18
Add default paragraph graphic factory #156
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
Conversation
src/main/java/com/gluonhq/richtextarea/model/ParagraphDecoration.java
Outdated
Show resolved
Hide resolved
Some more findings:
|
Right, I can reproduce both. |
pom.xml
Outdated
@@ -94,6 +94,9 @@ | |||
<version>${javafx.plugin.version}</version> | |||
<configuration> | |||
<mainClass>${main.class}</mainClass> | |||
<options> | |||
<option>--add-exports=javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED</option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this please be turned into a motivation to move some of that API into the public area?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but you know how it goes, making public exiting private API is challenging to say the least...
For instance, demand for public FontMetrics
dates back to 2010... https://bugs.openjdk.java.net/browse/JDK-8090775
The last comment about using the old com/sun/javafx/scene/control/skin/Utils.java gave me an idea, and I've been able to remove the private API...
@abhinayagarwal I've addressed your comments, PR is ready for review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bullet numbers do not follow the font family/size of the paragraph it is applied to. Although, the fix may be for a separate PR.
Numbers do use the same font size, but not font family (following NotesApp for instance). This can be discussed in a follow-up issue. |
Fixes #151
Fixes #152