ref: f4e1c8bddae00aab33b24e3e4ea7fbce383286ee
parent: 2a5831ec07855a5a45be814d9058b08ce3e2df9d
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:30:20 EDT 2009
cache: Disable the legacy compatibility if 16-bit system.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2009-07-31 suzuki toshiya <[email protected]>
+ cache: Disable the legacy compatibility if 16-bit system.
+
+ * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Exclude
+ the legacy behaviour from 16-bit platform, because the
+ current hack cannot detect the caller uses this function
+ via legacy convension.
+ (FTC_SBitCache_Lookup): Ditto.
+
+2009-07-31 suzuki toshiya <[email protected]>
+
cache: Check 32-bit glyph index on 16-bit systems.
* src/cache/ftcbasic.c (ftc_basic_family_get_count):
--- a/src/cache/ftcbasic.c
+++ b/src/cache/ftcbasic.c
@@ -328,7 +328,7 @@
if ( anode )
*anode = NULL;
-#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+#if defined( FT_CONFIG_OPTION_OLD_INTERNALS ) && ( FT_INT_MAX > 0xFFFFU )
/*
* This one is a major hack used to detect whether we are passed a
@@ -651,7 +651,7 @@
*ansbit = NULL;
-#ifdef FT_CONFIG_OPTION_OLD_INTERNALS
+#if defined( FT_CONFIG_OPTION_OLD_INTERNALS ) && ( FT_INT_MAX > 0xFFFFU )
/* This one is a major hack used to detect whether we are passed a
* regular FTC_ImageType handle, or a legacy FTC_OldImageDesc one.