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

Proportional Gradient Paint does not align correctly to the Text node

XMLWordPrintable

      Proportional gradient should map onto the bounds of the shape that the gradient fills. Text does not do that! It maps to the bounds of each individual (internal) draw call. This happens when text is multi-line and has complex layout of any kind. This is particularly noticeable when line length vary, tabs are used etc.

        1. TextGradAfter.png
          TextGradAfter.png
          25 kB
        2. TextGradBefore.png
          TextGradBefore.png
          89 kB
        3. TextGradBug.java
          2 kB

            thor Thor Johannesson (Inactive)
            thor Thor Johannesson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: