RFR: 8191758: Match WebKit's font weight rendering with JavaFX

Kevin Rushforth kcr at openjdk.java.net
Fri Apr 17 15:19:01 UTC 2020

On Tue, 14 Apr 2020 10:25:52 GMT, Bhawesh Choudhary <github.com+4208131+bhaweshkc at openjdk.org> wrote:

> As per JavaFx 700 font weight is considered to be bold but webkit is using 600 font weight for text to become bold. to
> fix issue, use boldWeightValue() function which uses 700 font weight rather than isFontWeightBold() which compare
> against 600 font weight.

Can you add a unit test to go along with this fix?


PR: https://git.openjdk.java.net/jfx/pull/180

More information about the openjfx-dev mailing list