fixed a small bug in the sbit cache that caused problems with embedded bitmaps
This commit is contained in:
parent
100317c335
commit
282e665f71
@ -1,5 +1,8 @@
|
||||
2002-11-07 David Turner <david@freetype.org>
|
||||
|
||||
* src/cache/ftcsbit.c (ftc_sbit_node_load): fixed a small bug that caused
|
||||
problems with embedded bitmaps
|
||||
|
||||
* src/otlayout/otlayout.h, src/otlyaout/otlconf.h,
|
||||
src/otlayout/otlgsub.c, src/otlayout/otlgsub.h, src/otlayout/otlparse.c,
|
||||
src/otlayout/otlparse.h, src/otlayout/otlutils.h:
|
||||
|
3
src/cache/ftcsbits.c
vendored
3
src/cache/ftcsbits.c
vendored
@ -189,6 +189,8 @@
|
||||
sbit->format = (FT_Byte)bitmap->pixel_mode;
|
||||
sbit->max_grays = (FT_Byte)(bitmap->num_grays - 1);
|
||||
|
||||
#if 0 /* this doesn't work well with embedded bitmaps !! */
|
||||
|
||||
/* grab the bitmap when possible - this is a hack! */
|
||||
if ( slot->flags & FT_GLYPH_OWN_BITMAP )
|
||||
{
|
||||
@ -196,6 +198,7 @@
|
||||
sbit->buffer = bitmap->buffer;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
/* copy the bitmap into a new buffer -- ignore error */
|
||||
error = ftc_sbit_copy_bitmap( sbit, bitmap, memory );
|
||||
|
Loading…
Reference in New Issue
Block a user