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

Behdad Esfahbod behdad at kemper.freedesktop.org
Sat Dec 9 23:34:05 PST 2006


 src/cairo-ft-font.c |   19 +------------------
 1 files changed, 1 insertion(+), 18 deletions(-)

New commits:
diff-tree 70695f5c62b89b417c1e8b42451470a5a8920bf3 (from fea60c7283172be5efb42332a96fe322466bd6ed)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sun Dec 10 02:32:52 2006 -0500

    [FreeType] Remove "UNSUPPORTED" show_glyphs stub and NULL its entry
    
    The fallback paths always assume UNSUPPORTED if a method is NULL, so, no need
    for a method to just return UNSUPPORTED.

diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 46eeb73..bea639e 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -1984,23 +1984,6 @@ _cairo_ft_ucs4_to_index (void	    *abstr
 }
 
 static cairo_int_status_t
-_cairo_ft_show_glyphs (void		       *abstract_font,
-		       cairo_operator_t    	op,
-		       cairo_pattern_t     *pattern,
-		       cairo_surface_t     *surface,
-		       int                 	source_x,
-		       int                 	source_y,
-		       int			dest_x,
-		       int			dest_y,
-		       unsigned int		width,
-		       unsigned int		height,
-		       const cairo_glyph_t *glyphs,
-		       int                 	num_glyphs)
-{
-    return CAIRO_INT_STATUS_UNSUPPORTED;
-}
-
-static cairo_int_status_t
 _cairo_ft_load_truetype_table (void	       *abstract_font,
                               unsigned long     tag,
                               long              offset,
@@ -2037,7 +2020,7 @@ const cairo_scaled_font_backend_t cairo_
     _cairo_ft_scaled_glyph_init,
     NULL,			/* text_to_glyphs */
     _cairo_ft_ucs4_to_index,
-    _cairo_ft_show_glyphs,
+    NULL, 			/* show_glyphs */
     _cairo_ft_load_truetype_table,
 };
 


More information about the cairo-commit mailing list