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

Unclear color requirements for attributed text drawing

XMLWordPrintable

    • 2d
    • b56
    • sparc
    • solaris_8

      The spec for Graphics.drawString(AttributedCharacterIteractor..) requires to
      use "this graphics context's current color." However, the spec for
      java.awt.font.textAttribute.FOREGROUND specifies Color.black as the default
      when this attribute is absent.
      It is also uclear whether FOREGROUND, if defined, takes precedence over the curent color.

      ###@###.### 2004-09-14

      The Graphics2D spec for this API needs to be changed. The graphics current paint is only used as a default when the AttributedCharacterIterator does not specify a foreground paint, or when it does not specify a background paint and the AttributedCharacterIterator specifies SWAP_COLORS=true.
      ###@###.### 2005-04-14 17:42:53 GMT

            prr Philip Race
            savzan Stanislav Avzan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: