[poppler] poppler/poppler: CairoOutputDev.cc,1.11,1.12

Kristian Hogsberg krh at freedesktop.org
Fri May 20 13:48:54 PDT 2005


Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv27968/poppler

Modified Files:
	CairoOutputDev.cc 
Log Message:
2005-05-20  Kristian Høgsberg  <krh at redhat.com>

        * poppler/CairoOutputDev.cc: Account for different row vs. column
        vector conventions between cairo and poppler.




Index: CairoOutputDev.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/CairoOutputDev.cc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- CairoOutputDev.cc	12 May 2005 21:26:25 -0000	1.11
+++ CairoOutputDev.cc	20 May 2005 20:48:52 -0000	1.12
@@ -214,8 +214,8 @@
   m12 *= state->getHorizScaling();
 
   w = currentFont->getSubstitutionCorrection(state->getFont());
-  m12 *= -w;
-  m22 *= -w;
+  m12 *= w;
+  m22 *= w;
 
   LOG(printf ("font matrix: %f %f %f %f\n", m11, m12, m21, m22));
   
@@ -223,9 +223,9 @@
   cairo_set_font_face (cairo, font_face);
 
   matrix.xx = m11;
-  matrix.xy = m12;
-  matrix.yx = m21;
-  matrix.yy = m22;
+  matrix.xy = -m21;
+  matrix.yx = m12;
+  matrix.yy = -m22;
   matrix.x0 = 0;
   matrix.y0 = 0;
   cairo_set_font_matrix (cairo, &matrix);
@@ -509,8 +509,8 @@
   LOG (printf ("drawImageMask %dx%d, matrix: %f, %f, %f, %f, %f, %f\n",
 	       width, height, ctm[0], ctm[1], ctm[2], ctm[3], ctm[4], ctm[5]));
   matrix.xx = ctm[0] / width;
-  matrix.xy = ctm[1] / width;
-  matrix.yx = -ctm[2] / height;
+  matrix.xy = -ctm[2] / height;
+  matrix.yx = ctm[1] / width;
   matrix.yy = -ctm[3] / height;
   matrix.x0 = ctm[2] + ctm[4];
   matrix.y0 = ctm[3] + ctm[5];
@@ -606,8 +606,8 @@
   LOG (printf ("drawImageMask %dx%d, matrix: %f, %f, %f, %f, %f, %f\n",
 	       width, height, ctm[0], ctm[1], ctm[2], ctm[3], ctm[4], ctm[5]));
   matrix.xx = ctm[0] / width;
-  matrix.xy = ctm[1] / width;
-  matrix.yx = -ctm[2] / height;
+  matrix.xy = -ctm[2] / height;
+  matrix.yx = ctm[1] / width;
   matrix.yy = -ctm[3] / height;
   matrix.x0 = ctm[2] + ctm[4];
   matrix.y0 = ctm[3] + ctm[5];



More information about the poppler mailing list