RFR: 8316518 javafx.print.Paper getWidth / getHeight rounds values, causing errors.
Florian Kirmaier
fkirmaier at openjdk.org
Tue Sep 19 12:03:08 UTC 2023
On Tue, 19 Sep 2023 11:56:39 GMT, Florian Kirmaier <fkirmaier at openjdk.org> wrote:
> The Method javafx.print.getWidth and getHeight returns a double of points.
> But the values are always rounded to full integers. This causes especially problems,
> with mm based Papers.
>
> I asked in the mailing list, with the conclusion (me and John Hendrix) that is best to just fix this behavior by removing the rounding.
According to my test - I'm still able to print.
I also don't see anything in the code, which implies that the rounding was necessary.
Is there something specific that should be tested on changes in printing?
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1244#issuecomment-1725363048
More information about the openjfx-dev
mailing list