-
Enhancement
-
Resolution: Duplicate
-
P3
-
None
-
1.2.0
-
x86
-
windows_95
Name: clC74495 Date: 07/07/99
On printer's page description language,
a character drawn by Java2D is represented as set of
one pixel height rectangles such as,
== === ===
= = = = = =
==== === =
= = = = = =
= = === ===
(= "ABC").
That representation slows down printing speed, and
grows up spool data size.
(Review ID: 85211)
======================================================================
This bug happened under the two following both of two environments.
OS : win_95
Printer : Canon LBP-A404 PS Lite
Printer Driver : Postscript Printer Driver ver. 4.00
OS : win_95
Printer : Canon Laser Shot LBP-450
Printer Driver : Lips4 Printer Driver for windows95 Vwersion 5.22
The results of printing depends on the type of font.
Here are a couple ofsource code of print methods that the user implemented.
1. Using True type font( ex. MS Gothic )
The issue did not occur.
The character "1" is drawn as character string.
public int print(Graphics g, PageFormat pf, int pi) {
Graphics2D g2 = (Graphics2D)g;
g2.setColor(Color.black);
g2.setFont(new Font("MS Gothic",Font.PLAIN,20));
g2.drawString("1",144,144);
}
2. Using Java font ( ex. Dialog )
The issue occurred. The character "1" is drawn as a lot of 1 dot width
lines.
public int print(Graphics g, PageFormat pf, int pi) {
Graphics2D g2 = (Graphics2D)g;
g2.setColor(Color.black);
g2.drawString("1",144,144);
}
[ tbaba@japan 1999-09-02 ]
========================================================================
- duplicates
-
JDK-4227245 42 Java2D+Printing Additional~PDL~output for win32
-
- Resolved
-