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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: