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

ImagePattern coordinates on Text are wrong when using VISUAL_BOUNDS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • 7u6
    • javafx
    • None

      ImagePattern applied to Text doesn't start from the left upper corner of first letter. Instead it starts somewhere higher. In example(TextImagePatternBug.java) you can see a text with proportional image pattern which coordinates are (0,0) and width and height are 0.5. Horizontally it tiled exactly 2 times, but vertically it is cut of on top and bottom.

        1. Text.png
          Text.png
          15 kB
        2. TextImagePatternBug.zip
          35 kB
        3. square.png
          square.png
          0.3 kB

            prr Philip Race
            asakharu Aleksandr Sakharuk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: