* src/base/ftglyph.c (FT_Glyph_To_Bitmap): added code to return succesfully

when the function is called with a bitmap glyph (the previous code simply
    returned with an error)
BRANCH-2-1-5
David Turner 23 years ago
parent 218867e4d8
commit e2903b7f80
  1. 4
      ChangeLog
  2. 5
      src/base/ftglyph.c

@ -1,5 +1,9 @@
2002-07-07 David Turner <david@freetype.org>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): added code to return succesfully
when the function is called with a bitmap glyph (the previous code simply
returned with an error)
* docs/DEBUG.TXT: adding debugging support documentation
* src/base/ftdebug.c (ft_debug_init), builds/win32/ftdebug.c

@ -591,6 +591,11 @@
goto Bad;
clazz = glyph->clazz;
/* when called with a bitmap glyph, do nothing and return succesfully */
if ( clazz == &ft_bitmap_glyph_class )
goto Exit;
if ( !clazz || !clazz->glyph_prepare )
goto Bad;

Loading…
Cancel
Save