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

Wrong text position for whitespaced string in printing Swing text

    XMLWordPrintable

Details

    Backports

      Description

        PrinterJob.print() doesn't seem to calculate whitespaces correctly.
        A string beginning with multiple whitespaces is displayed properly in Swing
        component. However, when printing, the start position of the line changes,
        according to the number of whitespaces.

        Attachments

          1. print-output-jdk6.pdf
            18 kB
            Prasanta Sadhukhan
          2. print-output-jdk9b114.pdf
            18 kB
            Prasanta Sadhukhan
          3. PrintSample.java
            2 kB
            Prasanta Sadhukhan

          Issue Links

            Activity

              People

                psadhukhan Prasanta Sadhukhan
                shadowbug Shadow Bug
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: