Index: lib/font/FreeType/ftfuncs.c =================================================================== RCS file: /home/eich/cvs/xc/lib/font/FreeType/ftfuncs.c,v retrieving revision 1.1.1.26 diff -u -r1.1.1.26 ftfuncs.c --- lib/font/FreeType/ftfuncs.c 25 Nov 2004 16:47:54 -0000 1.1.1.26 +++ lib/font/FreeType/ftfuncs.c 12 Aug 2005 12:10:22 -0000 @@ -929,6 +929,12 @@ sfnt = (SFNT_Service)face->sfnt; if ( strike_index != 0xFFFFU && sfnt->load_sbits ) { + if (!sfnt->find_sbit_image || !sfnt->load_sbit_metrics) { + if ( sbitchk_incomplete_but_exist ) + *sbitchk_incomplete_but_exist=1; + error = -1; + goto Exit; + } else /* Check whether there is a glyph sbit for the current index */ error = sfnt->find_sbit_image( face, glyph_index, strike_index, &range, &strike, &glyph_offset );