[cairo-commit] cairo/src cairo-win32-font.c,1.21,1.22

Tim Rowley commit at pdx.freedesktop.org
Tue Jun 14 14:12:04 PDT 2005


Committed by: tor

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv7885/src

Modified Files:
	cairo-win32-font.c 
Log Message:
	* src/cairo-win32-font.c: Correct extents for text with a general
	tranform.


Index: cairo-win32-font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-win32-font.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- cairo-win32-font.c	10 Jun 2005 19:18:21 -0000	1.21
+++ cairo-win32-font.c	14 Jun 2005 21:12:00 -0000	1.22
@@ -722,7 +722,7 @@
 	_cairo_win32_scaled_font_done_unscaled_font (&scaled_font->base);
 
 	extents->x_bearing = (double)metrics.gmptGlyphOrigin.x / scaled_font->em_square;
-	extents->y_bearing = (double)metrics.gmptGlyphOrigin.y / scaled_font->em_square;
+	extents->y_bearing = - (double)metrics.gmptGlyphOrigin.y / scaled_font->em_square;
 	extents->width = (double)metrics.gmBlackBoxX / scaled_font->em_square;
 	extents->height = (double)metrics.gmBlackBoxY / scaled_font->em_square;
 	extents->x_advance = (double)metrics.gmCellIncX / scaled_font->em_square;




More information about the cairo-commit mailing list