Here's an example of text printed from Java, it was rendered using
Graphics.drawString, sent to a PostScript printer (WPrinterJob is the
default printer job)
http://yaroslavvb.com/work/curve-noise1.png
Top is what Java prints, under magnification, bottom is what it should
be. You can see that curves are uneven, and every character is
rendered in a slightly different way. What causes this, and how can
the quality be improved?
Yaroslav
Knute Johnson - 15 Aug 2007 18:21 GMT
> Here's an example of text printed from Java, it was rendered using
> Graphics.drawString, sent to a PostScript printer (WPrinterJob is the
[quoted text clipped - 7 lines]
>
> Yaroslav
Did you anti-alias when you rendered it? It is very odd looking and
doesn't quite look like an anti-alias problem.

Signature
Knute Johnson
email s/nospam/knute/
Yaroslav Bulatov - 17 Aug 2007 19:27 GMT
> > Top is what Java prints, under magnification, bottom is what it should
> > be. You can see that curves are uneven, and every character is
[quoted text clipped - 5 lines]
> Did you anti-alias when you rendered it? It is very odd looking and
> doesn't quite look like an anti-alias problem.
The text is printed as curves, however those curves are noisy, so
every character is printed differently
Roedy Green - 17 Aug 2007 21:50 GMT
>The text is printed as curves, however those curves are noisy, so
>every character is printed differently
What happens when you try a different font? Try a high quality Adobe
OpenFont.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Yaroslav Bulatov - 20 Aug 2007 02:34 GMT
On Aug 17, 1:50 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> >The text is printed as curves, however those curves are noisy, so
> >every character is printed differently
>
> What happens when you try a different font? Try a high quality Adobe
> OpenFont.
Same situation. The problem is that Java converts font to curves, and
introduces errors during the conversion process.
Roedy Green - 17 Aug 2007 21:38 GMT
On Wed, 15 Aug 2007 16:48:28 -0000, Yaroslav Bulatov
<yaroslavvb@gmail.com> wrote, quoted or indirectly quoted someone who
said :
>Here's an example of text printed from Java, it was rendered using
>Graphics.drawString, sent to a PostScript printer (WPrinterJob is the
>default printer job)
>http://yaroslavvb.com/work/curve-noise1.png
One way to get good quality is to generate raw PostScript and send
that directly to the printer.
See http://mindprod.com/jgloss/postscript.html
It is tremendous fun. PS is a language every bit as interesting as
Java.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com