[gs-cvs] rev 7784 - trunk/gs/src

leonardo at ghostscript.com leonardo at ghostscript.com
Tue Mar 13 15:40:29 PDT 2007


Author: leonardo
Date: 2007-03-13 15:40:29 -0700 (Tue, 13 Mar 2007)
New Revision: 7784

Modified:
   trunk/gs/src/gxstroke.c
Log:
Fix (stroking) : Apply the right math for computing always_thin,

DETAILS :

The old code estimated the line width with 
an empiric formula, which doesn't look well defined.
Replacing it with a right math.
See comment in code.

EXPECTED DIFFERENCES :

comparefiles/Bug688789.pdf - a minor single pixel difference at 300 dpi.

CET - None.


Modified: trunk/gs/src/gxstroke.c
===================================================================
--- trunk/gs/src/gxstroke.c	2007-03-13 22:35:51 UTC (rev 7783)
+++ trunk/gs/src/gxstroke.c	2007-03-13 22:40:29 UTC (rev 7784)
@@ -486,7 +486,7 @@
 		       With solving D(rr(a),a)==0, got :
 		       max_rr = (xx^2 + xy^2 + yx^2 + yy^2 + sqrt(((xy + yx)^2 + (xx - yy)^2)*((xy - yx)^2 + (xx + yy)^2)))/2.
 		       r = sqrt(max_rr);
-		       Well we could use eigenvaluse of the quadratic form,
+		       Well we could use eigenvalues of the quadratic form,
 		       but it gives same result with a bigger calculus.
 		     */
 		    double max_rr = (xx*xx + xy*xy + yx*yx + yy*yy + 



More information about the gs-cvs mailing list