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

Java2D Printing: fonts not in win32 font directory print incorrectly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.1
    • 1.3.0
    • client-libs
    • None
    • 2d
    • beta
    • x86
    • windows_nt

        This bug can be seen on win32 on kestrel (J2SE1.3) and internal merlin builds.

        "This problem is related to using custom TrueType fonts which are
        loaded through Font.createFont(Font.TRUETYPE_FONT, inputStream). When we print the JFrame using the PrinterJob class, the components in the
        printout appear to be using altogether different fonts which make it
        look ugly. The screen display however uses the truetype fonts correctly.
        The print problem disappears when those fonts are manually put in the
        C:\WindowsNT\Fonts directory. The above story happens on a PC.

        The same print-out when taken from a Sun workstation, appears to
        behave perfectly well (with the right fonts) irrespective of whether
        those fonts are installed on the machine or not."

        Test case attached.

              prr Philip Race
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: