Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8023794

[macosx] LCD Rendering hints seems not working without FRACTIONALMETRICS=ON

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b70
    • OS:
      os_x

      Backports

        Description

        Run the attached AntialiasDemo.java on Mac. By default, antialias hints set to OFF in this demo.

        Note that desktop settings is ON, not some LCD, regardless of monitor, be it a generic old Sony or iMac.
        It's easy to see that fonts have grayscale antialiasing in Swing component by default.

        Change the value in Demo to LCD_HRGB and play with size of the "The sky is blue": apparently hint is still ON, and hinting gray.

        Now, add somewhere to line 524 in demo a line
        g2Image.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON); compile and run again.

        All of a sudden LCD_HRGB start working, and letters in the sample have visible color tint.

        Now, is it a bug? Shouldn't LCD hints be default on Mac for Swing?

        It's not a regression, I believe, not between 7 and 8 releases.

        2D_Font/SwingAntialiasLCDTextTest

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/4a6fbc097563
            User: lana
            Date: 2015-06-20 18:08:09 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/4a6fbc097563 User: lana Date: 2015-06-20 18:08:09 +0000
            Hide
            tolli Tony Li (Inactive) added a comment -
            Mac10.10-x64/8u60b25 Graphics:AMD Radeon HD 6750M 512 MB

            RULE 2D_Image/ImageFilterTest ExitCode 255
            RULE 2D_Font/AntialiasTableTest ExitCode 255

            The two cases have the same issue.
            Show
            tolli Tony Li (Inactive) added a comment - Mac10.10-x64/8u60b25 Graphics:AMD Radeon HD 6750M 512 MB RULE 2D_Image/ImageFilterTest ExitCode 255 RULE 2D_Font/AntialiasTableTest ExitCode 255 The two cases have the same issue.
            Hide
            tolli Tony Li (Inactive) added a comment -
            Mac10.10-x64/8u66b07 Graphics:AMD Radeon HD 6750M 512 MB

            RULE 2D_Image/ImageFilterTest ExitCode 255
            RULE 2D_Font/AntialiasTableTest ExitCode 255

            The two cases have the same issue.
            Show
            tolli Tony Li (Inactive) added a comment - Mac10.10-x64/8u66b07 Graphics:AMD Radeon HD 6750M 512 MB RULE 2D_Image/ImageFilterTest ExitCode 255 RULE 2D_Font/AntialiasTableTest ExitCode 255 The two cases have the same issue.
            Hide
            tolli Tony Li (Inactive) added a comment -
            Mac10.10-x64/8u65b10 Graphics:AMD Radeon HD 6750M 512 MB

            RULE 2D_Image/ImageFilterTest ExitCode 255
            RULE 2D_Font/AntialiasTableTest ExitCode 255

            The two cases have the same issue.
            Show
            tolli Tony Li (Inactive) added a comment - Mac10.10-x64/8u65b10 Graphics:AMD Radeon HD 6750M 512 MB RULE 2D_Image/ImageFilterTest ExitCode 255 RULE 2D_Font/AntialiasTableTest ExitCode 255 The two cases have the same issue.
            Hide
            ampopov Alexander Popov (Inactive) added a comment -
            RULE "2D_Font/LcdAntialiasingTest" ExitCode 255
            Show
            ampopov Alexander Popov (Inactive) added a comment - RULE "2D_Font/LcdAntialiasingTest" ExitCode 255

              People

              • Assignee:
                bae Andrew Brygin
                Reporter:
                yan Yuri Nesterenko (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: