RFR: 8351878: RichTextArea: copy/paste issues [v5]

Andy Goryachev angorya at openjdk.org
Fri Apr 4 15:24:57 UTC 2025


On Fri, 4 Apr 2025 12:43:54 GMT, Lukasz Kostyra <lkostyra at openjdk.org> wrote:

> LGTM
than you!


> some fonts don't support those special characters (ex. Arial Rounded MT Bold on Windows) so as a fallback they are drawn with a different font that supports them. It's quite normal behavior to do so I've seen often, but do you know what is the process for determining which font to use as a replacement in RTA?

A good question!  Maybe @prrace can explain the process.  Looking in the Monkey Tester, it is clear that the font substitution algorithm is unable to pick the right fallback font from Arial Rounded MT Bold on macOS (while Swing simply refuses to render anything):

![Screenshot 2025-04-04 at 08 21 04](https://github.com/user-attachments/assets/77f49143-20c1-4e0a-8f71-a76c966772a0)

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1735#issuecomment-2779058996


More information about the openjfx-dev mailing list