Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

Low quality printing from Java

Thread view: 
Yaroslav Bulatov - 15 Aug 2007 17:48 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.