<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hello,<br>
<br>
I’ve been testing the new RichTextArea control and encountered a few
issues. Some may not be bugs, though I couldn't find existing
reports, so I’m sharing them here.<br>
<br>
- The cursor doesn’t change from TEXT to DEFAULT when hovering over
the scrollbar.<br>
<p><a class="moz-txt-link-freetext" href="https://drive.google.com/file/d/1ob_2d-abI4F0bVoNWVS6d51rwYTt3-1n/view?usp=drive_link">https://drive.google.com/file/d/1ob_2d-abI4F0bVoNWVS6d51rwYTt3-1n/view?usp=drive_link</a></p>
- Setting font-family doesn’t work in CoreArea (but works in
RichTextArea)<br>
<br>
<font face="monospace">.rich-text-area .content, // only this line
works<br>
.code-area .content,<br>
.code-area .content .label,<br>
.code-area .content TextFlow {<br>
-fx-font-family: "JetBrains Mono";<br>
-fx-font-size: 14px;<br>
}</font><br>
<br>
<span
style="color: rgb(34, 34, 34); font-family: DDG_ProximaNova, DDG_ProximaNova_UI_0, DDG_ProximaNova_UI_1, DDG_ProximaNova_UI_2, DDG_ProximaNova_UI_3, DDG_ProximaNova_UI_4, DDG_ProximaNova_UI_5, DDG_ProximaNova_UI_6, "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif, sans-serif, DDG_ProximaNova, DDG_ProximaNova_UI_0, DDG_ProximaNova_UI_1, DDG_ProximaNova_UI_2, DDG_ProximaNova_UI_3, DDG_ProximaNova_UI_4, DDG_ProximaNova_UI_5, DDG_ProximaNova_UI_6, "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif; font-size: 16.4571px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: break-spaces; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">I also hope there is room left for small enhancements:</span>
<p>- RichParagraph.getSegments() is abstract and package-private and
a part of public API.</p>
Judging from API it's suposed to be extensible, otherwise it's not
possible to create a custom model.<br>
<a class="moz-txt-link-freetext" href="https://github.com/openjdk/jfx/blob/master/modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/model">https://github.com/openjdk/jfx/blob/master/modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/model</a><br>
<p><a class="moz-txt-link-freetext" href="https://github.com/openjdk/jfx/blob/master/modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/model/SimpleViewOnlyStyledModel.java#L354">https://github.com/openjdk/jfx/blob/master/modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/model/SimpleViewOnlyStyledModel.java#L354</a></p>
<p>- RichTextArea lacks the ability to set common editor settings
directly or via looked-up colors. I've created a project that
brings TextMate support to RTA, so I'm obtaining editor's
background, text color and highlight color from the theme
settings.</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/mkpaz/tm4javafx/blob/master/tm4javafx/src/main/java/tm4javafx/richtext/StyleHelper.java#L75">https://github.com/mkpaz/tm4javafx/blob/master/tm4javafx/src/main/java/tm4javafx/richtext/StyleHelper.java#L75</a><br>
</p>
<p><br>
</p>
<p>Thanks for adding RichText support to JavaFX! Should I report all
these issues in JBS?</p>
Best regards.
</body>
</html>