Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-393

Certain UI components do not properly respect system text anti-aliasing hints

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None
    • None

    Description

      Some components render text using the drawString() method of Graphics2D and properly set the text rendering hints using the getTextAntialiasingHint() method in the Platform class. However, other components use a glyph vector that does not currently respect the text rendering hints. These components should be updated to use a FontRenderContext containing the correct text rendering hints:

      http://java.sun.com/javase/6/docs/api/java/awt/font/FontRenderContext.html#FontRenderContext(java.awt.geom.AffineTransform,%20java.lang.Object,%20java.lang.Object)

      Also, there is a minor issue with the use of getTextAntialiasingHint(): the AWT "awt.font.desktophints" property may contain multiple hints (e.g. on my desktop it also defines KEY_TEXT_LCD_CONTRAST) and Pivot is only looking at KEY_TEXT_ANTIALIASING. Additional methods should be added to support the other values.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gbrown Gregory K. Brown
            gbrown Gregory K. Brown
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment