On Fri, 4 Dec 2020 17:30:11 GMT, Prasanta Sadhukhan <psadhuk...@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

Reply via email to