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

Antialiasing for GTK L&F should be turned on by default if there is no embedded bitmap.

    Details

    • Subcomponent:
    • Resolved In Build:
      b64
    • CPU:
      generic
    • OS:
      open_solaris
    • Verification:
      Verified

      Backports

        Description

        If attached sample program is executed on Solaris nevada,
        there is no problem about font quality because embeded bitmap font
        is used (see HGPGothic.png). HG-PGothicB-Sun has 13 dot embedded bitmap in it.
        ===
        % env LC_ALL=ja_JP.UTF-8 java -jar dist/DesktopApplication1.jar
        Font = javax.swing.plaf.FontUIResource[family=HG-PGothicB-Sun,name=HG-PGothicB-Sun,style=plain,size=13]
        ===
        However, it is executed on Indiana, font quality is not good because
        font is rendered by outline without antialiasing on (see ipag.png).
        IPA has no 13 dot embedded bitmap in it.
        ===
        % env LC_ALL=ja_JP.UTF-8 java -jar dist/DesktopApplication1.jar
        Font = javax.swing.plaf.FontUIResource[family=IPAPGothic,name=IPAPGothic,style=plain,size=13]
        ===
        So I think that antialiasing should be turned on by default if font glyph is
        rendered by outline (not embedded bitmap) to consider font quality.
        I attached SwingSet2 result as SwingSet2_GTK_indiana.png when GTK style look & feel is selected.
        Result is same with my sample program. This problem was first found when netbeans was used on indiana.
        Also I found 6418032 which describes exactly same problem we encounted in indiana.
        Indiana default Japanese font is IPA. So the situation is the same with Linux destro. From the following evalation,
        ===
        The logic has been updated so on FC5 and other non-Sun desktops AA will be applied.
        ===
        AA seems to be turned on FC5 and other non-Sun desktops. So same setting is also needed on indiana.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  malenkov Sergey Malenkov (Inactive)
                  Reporter:
                  osayama Osamu Sayama (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: