There's no resolution setting for this. In your case, the text is
painted as shapes (vector graphics). The painting is delegated to the
Java2D subsystem. If the output is not readable you can't do much here.
I'd also verify if your barcode is not a little bit too small. In my
experience, unreadable barcodes are often a result of a mismatch between
barcode settings and printer resolution.
In case you didn't know, Barcode4J can generate high-quality barcodes as
EPS files. No font necessary. Might be an alternative for you.
On 18.05.2006 17:45:09 Camilakill wrote:
>
> Hi,
>
> I am using PSDocumentGraphics2D to create a postscript file.
> I draw a label in which I use a barcode font (IDAutomation).
> When I run it in Windows it prints perfect, but when I run the same code,
> with the same fonts, in Linux I am not being able to scan the barcode.
>
> Is there any command on the PSDocumentGraphics2D or GraphicContext which I
> could do to make the resolution of the file better.
>
> Maybe it is a problem with the fonts (the way they have been installed in
> Linux) but I just wanted to make sure that I am using the API correctly.
>
> My code is like follow:
> OutputStream out = new java.io.FileOutputStream(new File(targetDir,
> "ps-barcode.ps"));
> out = new java.io.BufferedOutputStream(out);
>
> PSDocumentGraphics2D g2d = new PSDocumentGraphics2D(false);
> g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext());
> g2d.setupDocument(out, 815, 415);
>
> Font barcode = new Font("IDAutomationSC39XL", Font.PLAIN, 10);//14
> g2d.setFont(barcode);
> g2d.drawString("!SALFL359F78999078!",50,50);
>
> g2d.finish();
>
> Thank you,
>
> Camila
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]