[cairo] Re: [PATCH]reworked _transform_glyph_bitmap

sunmoon1997 sunmoon1997 at gmail.com
Tue Oct 25 17:45:47 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,
   Here is the patch for cairo-1.0.x branch, transform bitmap glyphs for
all fonts not only bimap only ones.
sunmoon1997 wrote:
> hi,
>    I reworked _transform_glyph_bitmap today.
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDXtG7uOtwLijeKbwRAvpHAKCTraajfBZ5KakXGgfGis0O8ZiKwgCgrBaC
pzlvFCg4KvWeSf6g5TKHLZw=
=E1bE
-----END PGP SIGNATURE-----
-------------- next part --------------
--- cairo-1.0.0.orig/src/cairo-ft-font.c	2005-09-18 09:47:09.000000000 +0800
+++ cairo-1.0.0/src/cairo-ft-font.c	2005-10-26 08:37:01.000000000 +0800
@@ -1288,13 +1288,12 @@ _cairo_ft_unscaled_font_create_glyph (vo
 
     if (glyphslot->format == FT_GLYPH_FORMAT_OUTLINE)
 	status = _render_glyph_outline (face, val);
-    else
+    else {
 	status = _render_glyph_bitmap (face, val);
-    
-    if (val->image &&
-	unscaled->have_shape &&
-	(unscaled->face->face_flags & FT_FACE_FLAG_SCALABLE) == 0)
-	status = _transform_glyph_bitmap (val);
+	
+	if (val->image && unscaled->have_shape)
+	    status = _transform_glyph_bitmap (val);
+    }
 
  FAIL:
     if (status && val->image) {


More information about the cairo mailing list