[Commit] cairo/src cairo_font.c,1.3,1.4
Keith Packard
commit at keithp.com
Thu Aug 28 15:12:10 PDT 2003
Committed by: keithp
Update of /local/src/CVS/cairo/src
In directory home.keithp.com:/tmp/cvs-serv31308/src
Modified Files:
cairo_font.c
Log Message:
font pixel size is always non-negative
Index: cairo_font.c
===================================================================
RCS file: /local/src/CVS/cairo/src/cairo_font.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cairo_font.c 26 Aug 2003 14:40:17 -0000 1.3
+++ cairo_font.c 28 Aug 2003 21:12:08 -0000 1.4
@@ -143,7 +143,7 @@
X/Y scaling. Is there anything different we would want to do
for non-uniform X/Y scaling? */
_cairo_matrix_compute_determinant (&matrix, &expansion);
- font_size = sqrt (expansion);
+ font_size = sqrt (abs(expansion));
FcPatternAddDouble (pattern, "pixelsize", font_size);
cairo_matrix_scale (&matrix, 1.0 / font_size, 1.0 / font_size);
More information about the Commit
mailing list