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

Certain fonts are not correctly soft wrapped when using JTextComponent.print()

XMLWordPrintable

    • b03
    • generic
    • generic
    • Verified

        When printing, the letters at the end of the line are sometimes truncated when soft wrap is activated. This happens for all platforms and all printers. It is also independent of configured printer magins/borders.
        Interestingly the issue does not happen for all font sizes. There seems to be some mathematical miscalculation.
        To reproduce, run the attached test program. Try various fonts. it looks that the issue
        is present with sizes 6, 8, 11, 13, 15, und 17 while it is not with sizes 7, 9, 10, 12, 14, 16, 18, 19 and 20

              peterz Peter Zhelezniakov
              tviessma Thomas Viessmann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: