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

RFE: Java2D font anti-aliasing should support TrueType's gasp table

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.2
    • client-libs
    • None
    • 2d
    • beta
    • generic
    • generic

      TrueType fonts contain a table (the 'gasp' table) which specifies the
      font designer's recommendations for which point sizes of a font
      should use monochrome bitmaps, which sizes should be hinted
      and which sizes smoothed (anti-aliased), and combinations thereof.

      These recommendations are typically based on the font designer
      knowing which sizes contain tuned embedded bitmaps or sufficiently
      high quality hints that smoothing would produce less readable
      results.

      It would be a useful augmentation to the Java 2D text anti-aliasing
      hint values to provide a way for an application to specify that this
      behaviour of following the font designer's recommendation is preferred.

      A particular application of this would be in supporting the Swing
      Windows L&F as the Windows desktop's "Standard" font smoothing setting
      uses this approach. (A careful look at a windows desktop with this
      setting will reveal that most fonts at typical GUI point sizes are
      not A-Aed, since the font recommends against it).

      Consideration will have to be given to selecting a single policy
      for a composite font, since its possible the different physical
      components contain different recommendations.

      Also the FontRenderContext class would need to be made capable of
      expressing this setting.

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: