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

Proportional Gradient Paint does not align correctly to the Text node

    Details

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: