<Swing Dev> Withdrawn: 8231286: HTML font size too large with high-DPI scaling and W3C_UNIT_LENGTHS
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Wed Jan 27 07:03:42 UTC 2021
On Fri, 4 Dec 2020 17:30:11 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Issue is when using a JEditorPane to render HTML views with W3C_UNIT_LENGTHS enabled, font-sizes set using CSS are much larger than the same font size outside the HTML.
> It's because CSS LengthUnit uses screen resolution to calculate units so for hidpi screens, the html font size is bigger.
> Fix is to calculate the units based on the CSS absolute length mentioned in https://drafts.csswg.org/css-values-3/#absolute-lengths so hidpi scaling is not applied twice in CSS and again by Java.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1628
More information about the swing-dev
mailing list