United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6733203 PIT: Printing a String drawn with 'Dialog' font throws Internal Error, Ubuntu
6733203 : PIT: Printing a String drawn with 'Dialog' font throws Internal Error, Ubuntu

Details
Type:
Bug
Submit Date:
2008-08-04
Status:
Closed
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2009-01-05
Component:
client-libs
OS:
linux_ubuntu
Sub-Component:
2d
CPU:
x86
Priority:
P2
Resolution:
Duplicate
Affected Versions:
7
Fixed Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
I have a sample application which renders a string using 'Dialog' font of size 12 on a canvas. I have implemented a Printable interface which makes the above string rendered onto the graphics context of the printer in Printable's print method. When running this test on Ubuntu 8.0.4, I am getting an InternalError -

Exception in thread "main" java.lang.InternalError: Not implemented
at sun.font.FcFontConfiguration.getFontDescriptors(FcFontConfiguration.java:175)
at sun.awt.PlatformFont.<init>(PlatformFont.java:74)
at sun.awt.X11.XFontPeer.<init>(XFontPeer.java:53)
at sun.awt.X11.XToolkit.getFontPeer(XToolkit.java:874)
at java.awt.Font.getPeer_NoClientCode(Font.java:427)
at java.awt.Font.getPeer(Font.java:418)
at sun.print.PSPrinterJob.textOut(PSPrinterJob.java:1199)
at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:229)
at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:141)
at sun.print.PSPathGraphics.drawString(PSPathGraphics.java:115)
at TimesB.paint(TimesB.java:29)
at TimesB.print(TimesB.java:38)
at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2008)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1457)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1273)
at TimesB.main(TimesB.java:61)

I reproduced it on Ubuntu 8.0.4 with jdk7-b33 2D PIT build. Not reproducible on jdk7-b31 nor on 6u10. Not reproducible on RHEL5. Hence it is a regression in b33.

I have attached a sample test. Just run the test. You will see a Frame with some text and a print dialog will appear. Just navigate through the print dialog and click OK. You will see the above internal error on the console.

                                    

Comments
EVALUATION

Closing as a dup of 6752622 since the cause is the same and that's
a bit closer to the root of it as well as being a JCK failure.
In addition, at some point printing won't need to use this path.
                                     
2009-01-05
EVALUATION

This is new functionality introduced as part of fix for 6378099.
                                     
2008-08-04



Hardware and Software, Engineered to Work Together