RFR: 8344637: Fix Page8 of manual test java/awt/print/PrinterJob/PrintTextTest.java on Linux and Windows [v7]
Daniel Gredler
dgredler at openjdk.org
Fri Nov 29 17:38:43 UTC 2024
On Tue, 26 Nov 2024 23:23:59 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
>> Daniel Gredler has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add additional issue ID to PrintTextTest bug list
>
> src/java.desktop/share/classes/sun/print/PathGraphics.java line 962:
>
>> 960: }
>> 961: }
>> 962:
>
> The fix to PathGraphics.java looks good.
>
> A new font var is used to copy over all the transforms except translation from the original font object and use new font reference in drawString(). The translation transform is skipped since the drawString takes care of x and y positions.
That's right, this avoids doubling of the text start position coordinates, since the glyph positions which we are about to use already include this translation component. Let me know if you see anything that should be changed, or if I can mark this conversation as resolved.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21980#discussion_r1863810425
More information about the client-libs-dev
mailing list