A DESCRIPTION OF THE PROBLEM :
Trailing spaces before line breaks should not affect center alignment as Photoshop does not. You can find a video of Photoshop here: https://github.com/xulihang/ImageTrans-docs/issues/482
And here is a screenshot of Text in JavaFX. The first image displays the following text: "This is a paragraph" while the second displays the following text: "This is a
paragraph".
https://github.com/xulihang/JavaFX-samples/blob/main/alignment/screenshot.jpg
            
Trailing spaces before line breaks should not affect center alignment as Photoshop does not. You can find a video of Photoshop here: https://github.com/xulihang/ImageTrans-docs/issues/482
And here is a screenshot of Text in JavaFX. The first image displays the following text: "This is a paragraph" while the second displays the following text: "This is a
paragraph".
https://github.com/xulihang/JavaFX-samples/blob/main/alignment/screenshot.jpg
- duplicates
- 
                    JDK-8145496 Incorrect TextLayout word wrap with right or center text alignment -           
- Closed
 
-         
- links to
- 
                     Commit
        openjdk/jfx/398f104d Commit
        openjdk/jfx/398f104d
- 
                     Review(master)
        openjdk/jfx/1236 Review(master)
        openjdk/jfx/1236

