commit: Fix rounding errors when printing on gnome.

From: <msevior_at_physics.unimelb.edu.au>
Date: Sat Sep 17 2005 - 16:50:31 CEST

CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: xap/unix/xap_UnixFont.cpp
CVS: xap/unix/xap_UnixGnomePrintGraphics.cpp
CVS: ----------------------------------------------------------------------
Fix rounding errors when printing on gnome. Printing no longer sucks!

We were losing precision on printing the same way we lose precision on
screen through rounding error by truncating at pixels boundaries at 72
dpi. By using double precision and empoying gnome-print's double-precision
positioning text now looks perfect when printing.

This confirms that we need sub-pixel on screen positioning in order to get
high quality onscreen display of text.

Maybe Cairo can give this to us.

Cheers

Martin
Received on Sat Sep 17 16:51:33 2005

This archive was generated by hypermail 2.1.8 : Sat Sep 17 2005 - 16:51:34 CEST