RFR: 8351878: RichTextArea: Pasting from RTF doesn't apply formatting [v3]

Ziad El Midaoui zelmidaoui at openjdk.org
Mon Mar 24 20:51:17 UTC 2025


On Mon, 17 Mar 2025 15:21:14 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> Fixed two issues found in importing RTF text:
>> 
>> - charset translation (brought back removed code)
>> - missing font size attribute
>> - missing strike-through attribute
>> 
>> The charset issue was caused by my removal of the character decoder code present in the original JDK RTF parser/reader.  Why did I do that?
>
> Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   arabic

The tests run successfully with the fix however there are a few things that do not work as expected I guess :
1- Pasting text from notes app (MacOS) that uses numbered list in some cases shows 0. instead of the item number example: 
- in note app do something like this 

Test
1. one
2. two
3. three
Test

- Copy and paste it is rendred like this 

Test
0. one
0. two
0. three
Test

2- Tested with text written in outlook and pasting it and it do not apply formatting neither for RTL or LTR text
3- another thing the arabic diacritics text is not rendered correctly (this may not be related to this issue specifically) you can try with this text  السَّلَامُ عَلَيْكُمْ

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

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


More information about the openjfx-dev mailing list