RFR: 8313424: JavaFX controls in the title bar [v51]
Michael Strauß
mstrauss at openjdk.org
Wed Mar 12 06:27:05 UTC 2025
On Mon, 10 Mar 2025 18:46:29 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> Also on Windows, when the button do appear, their size seems to differ from the native:
I've counted the pixels for different scaling factors, and the sizes of the glyphs are generally within 1px of each other (native vs. JFX). What seems to be happening is a combination of pixel snapping, and a different rasterizer (in this specific case, JFX seems to bias the inner edge, whereas Windows seems to bias the outer edge).
(top is JFX, bottom is native)
<img src="https://github.com/user-attachments/assets/2d838e2f-c5b3-4df4-919b-3ec5cd767446" width=400/>
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2716677645
More information about the openjfx-dev
mailing list