[OpenJDK 2D-Dev] [9] request for review: 8098853: [PIT] Fonts look much darker than before in the PIT build for b68

Andrew Brygin andrew.brygin at oracle.com
Wed Jul 15 14:32:08 UTC 2015


  could you please review a fix for 8098853?

bug: https://bugs.openjdk.java.net/browse/JDK-8098853
webrev: http://cr.openjdk.java.net/~bae/8098853/9/webrev.00/

  By default, we use 140 as lcd contrast value. However, on macosx
  this value causes significant discrepancy with results of native
  text rendering. Although perfect match is not achievable at the
  moment, the lcd contrast 165 provides a bit better approximation
  of the native text.

  Let's consider to introduce a mean to adjust the lcd contrast in
  swing applications. We have a set of font rendering hints (desktop
  font hints), so let's populate this set with the TEXT_LCD_CONTRAST
  hint. 165 is default value for macosx, and it can be adjusted using
  property "sun.toolkit.fontSmoothingContrast".

  Please take a look.


More information about the 2d-dev mailing list