[cairo-commit] src/cairo-user-font.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Sat May 10 05:04:23 PDT 2008


 src/cairo-user-font.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f1a0e9df0e390759afb7951afacb6d353ac812cf
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sat May 10 13:49:23 2008 +0200

    [user-font] Round glyph origin position

diff --git a/src/cairo-user-font.c b/src/cairo-user-font.c
index 6422d1b..9aaa34d 100644
--- a/src/cairo-user-font.c
+++ b/src/cairo-user-font.c
@@ -153,8 +153,8 @@ _cairo_user_scaled_glyph_init (void			 *abstract_font,
 	surface = cairo_image_surface_create (CAIRO_FORMAT_A8, width, height);
 
 	cairo_surface_set_device_offset (surface,
-					 -scaled_glyph->metrics.x_bearing,
-					 -scaled_glyph->metrics.y_bearing);
+					 _cairo_lround (-scaled_glyph->metrics.x_bearing),
+					 _cairo_lround (-scaled_glyph->metrics.y_bearing));
 	status = _cairo_meta_surface_replay (meta_surface, surface);
 
 	if (status) {


More information about the cairo-commit mailing list