I'm afraid I don't have time to build something at the moment. I have next
week to make it work...
I was having a look at the PSGraphics2d class and I saw that I can draw
anything I want and then get a PSGenerator to write the postscript file from
that.
Am I correct?
Because I could do that Instead of drawing on a Graphics2d and converting
into an image and eventually converting into postscript.
I am trying to do that but I am getting a NullPointException when I try to
drawstring in the PsGraphics2d object. I believe I am not instantiating it
correctly...
My test code is:
File baseDir = new File(".");
File psfile = new File(baseDir, "out/ResultObj2PS.ps");
OutputStream out = new java.io.FileOutputStream(psfile);
PSGenerator psGen = new PSGenerator(out);
PSGraphics2D psG2d = new PSGraphics2D(true,psGen);
Font title = new Font("Verdana", Font.PLAIN, 18);
psG2d.setFont(title);
psG2d.drawString("camila testing again",1,1);
psG2d.dispose();
out.close();
cheers,
Camila
--
View this message in context:
http://www.nabble.com/embedded-font-for-PCL-t1511151.html#a4138493
Sent from the FOP - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]