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

Font.deriveFont implementation could be more efficient

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 6
    • client-libs
    • None
    • 2d
    • mustang
    • generic
    • generic

      Font.deriveFont creates a new Font with an instantiated Hashtable
      of attributes in cases where it doesn't need to.
      Specifically where the original font has no hashtable of attributes
      the deriveFont methods create one and construct the new font with a
      constructor which accepts this as a parameter.
      It would be better to detect that there is no attribute map and
      call a different constructor to derive the font.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: