Problem with Graphics2D setFont Method in java 1.6
854607Apr 25 2011 — edited May 1 2011Hi,
We are migrating one of our multithreaded J2SE application from java 1.4 to 1.6.
The application work is following :
1. Get the input data
2. from the input data create a ps file
3. create pcl file from the above created ps file
4. send the pcl to printer to printing.
I am encountering an error in step 2(creating a ps file). The ps file is created by implementing a Printable interface and then we are using Graphics2D setFont method to set the font of the printable.
The application fails due to the setFont method and produces NaN and Infinity values in the ps file. But if I comment all the setFont methods then the application works fine in java 1.6.
Could you please let me know what is the issue and what could be the work around for this?
[I have put one more post. The link is : http://forums.oracle.com/forums/thread.jspa?threadID=2206264&stqc=true]
Edited by: 851604 on Apr 25, 2011 2:17 AM