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

Font(Map)/getFont(Map): behavior with useless TextAttributes should be clarified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 2.0
    • client-libs
    • None
    • generic
    • generic

      Constructor java.awt.Font(Map) and method java.awt.Font.getFont(Map) takes Map containing TextAttribute values as a parameter. Number of TextAttributes deals nothing with Font instances (BACKGROUND, FOREGROUND, WEIGHT, SUPERSCRIPT and others). It should be clearly defined in the spec in which way implementation behaves with Maps containing such arguments (silently ignored?) The spec is silent also about null values of these attributes passing to Font(Map)/getFont(Map) when Map contain key-value pair like, say, (TextAttribute.BACKGROUND, null).
      ###@###.### 10/26/04 15:54 GMT

            Unassigned Unassigned
            mchernyssunw Michael Chernyshov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: