Font.deriveFont implementation could be more efficient

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 6
    • Affects Version/s: 6
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: