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

leonardo at ghostscript.com leonardo at ghostscript.com
Tue Feb 13 13:44:37 PST 2007


Author: leonardo
Date: 2007-02-13 13:44:37 -0800 (Tue, 13 Feb 2007)
New Revision: 7696

Modified:
   trunk/gs/src/gxhintn.c
Log:
Fix (type 1 hinter) : Consider quazi-degenerate CMT as degenerate.

DETAILS :

This improvement is done for PCL tests 18-08.BIN, 18-09.BIN .

EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/gxhintn.c
===================================================================
--- trunk/gs/src/gxhintn.c	2007-02-12 20:12:44 UTC (rev 7695)
+++ trunk/gs/src/gxhintn.c	2007-02-13 21:44:37 UTC (rev 7696)
@@ -648,8 +648,12 @@
     }
     if (this->ctmf.denominator != 0) {
 	code = fraction_matrix__invert_to(&this->ctmf, &this->ctmi); /* Note: ctmi is inversion of ctmf, not ctm. */
-	if (code < 0)
+	if (code == gs_error_rangecheck)
+	    this->ctmf.denominator = 0;
+	else if (code < 0)
 	    return code;
+    }
+    if (this->ctmf.denominator != 0) {
 	this->g2o_fraction = 1 << this->g2o_fraction_bits;
 	/* Note : possibly we'll adjust the matrix precision dynamically 
 	   with adjust_matrix_precision while importing the glyph. */



More information about the gs-cvs mailing list