Hello all. This is my first post to this list.
I'm working with the Graphics2D class of JavaSoft Java 1.2 to print
a very small file. When I examine the PostScript code, I don't see
anything like "(hello) show" in the code. Instead, I see lots of
PostScript operators drawing the outline of each character.
In desperation, I extended Graphics2D and implemented drawString()
myself. (Never extended an abstract class before. That was
an experience! Still have a lot of stubs in places.) I now get
reasonable results and the small PostScript file that I want.
I delayed doing this for the longest time possible because it
really felt unnecessary (certainly for English). I finally bit the
bullet because I'm really doing this for Asian CID fonts loaded in
a PostScript Level 3 printer.
But I'd still like to know if my subclassing Graphics2D was the
wrong approach. (Someone pointed me at PrintStream in awt.motif
in the Solaris version, but I couldn't find it documented.)
System specifics:
Java version "1.2.2"
Classic VM (build 1.2.2-L, green threads, nojit)
Oh yeah... The previous post to this list which comes closest to
describing what I'm seeing was from Klas Nordberg <[EMAIL PROTECTED]>,
on 09 Feb 2000, subject "Printing and fonts". He was using RC4 of
Blackdown's JDK. However, I don't see any response to his questions.
--Rick Kwan, Lightsaber Computing
[EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]