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

Fonts specified by facename lose style on printing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 1.4.0
    • client-libs
    • 2d
    • tiger
    • x86
    • windows_nt

      From GraphicsEnvironment fonts are got using getAllFonts().
      Then size of the fonts is increased using font.deriveFont(float size)
      The fonts are drawn as plain, bold, italic on screen, but when its
      printed italic fonts are printed as plain in Win32.

      This used to print properly in jdk 1.3.1. I tried with different printer
      drivers but output is always same.

      Attached here with is screenshot taken from WinXP & Win2000 and the printed output is saved to file. Compile and Run FontPrintTest and print the output.
      If italic fonts shown on screen is printed as plain, bug is reproduced.

        1. 1.4.2.pdf
          1.40 MB
          Alexey Ivanov
        2. 1.5.0.pdf
          1.37 MB
          Alexey Ivanov
        3. PrintAllFonts.java
          4 kB
          Alexey Ivanov

            prr Philip Race
            rmenonsunw Rakesh Menon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: