ref: 5237993a929fa9030df4e6e359d6d9cacf7e2e97
parent: e57ca7dec6a41dcf26c9551525d3645d1d73ab86
author: David Turner <[email protected]>
date: Thu Nov 7 04:46:43 EST 2002
fixed a small bug in the sbit cache that caused problems with embedded bitmaps
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-11-07 David Turner <[email protected]>
+ * 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:
--- a/src/cache/ftcsbits.c
+++ b/src/cache/ftcsbits.c
@@ -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 );