[pango] [OT] Enlarge lookup array



commit 075e9925cc9d4675e5a6be65e599e4ee97f2d018
Author: Behdad Esfahbod <behdad behdad org>
Date:   Wed Aug 12 17:50:19 2009 -0400

    [OT] Enlarge lookup array
    
    We'll fix it properly later when ruleset logic is moved into HarfBuzz.
    In the mean time, IranNastaliq was hitting the 100 limit.

 pango/pango-ot-info.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index 1099a30..cade38f 100644
--- a/pango/pango-ot-info.c
+++ b/pango/pango-ot-info.c
@@ -541,7 +541,7 @@ _pango_ot_info_substitute  (const PangoOTInfo    *info,
       PangoOTRule *rule = &g_array_index (ruleset->rules, PangoOTRule, i);
       hb_mask_t mask;
       unsigned int lookup_count, j;
-      unsigned int lookup_indexes[100];
+      unsigned int lookup_indexes[1000];
 
       if (rule->table_type != PANGO_OT_TABLE_GSUB)
 	continue;
@@ -588,7 +588,7 @@ _pango_ot_info_position    (const PangoOTInfo    *info,
       PangoOTRule *rule = &g_array_index (ruleset->rules, PangoOTRule, i);
       hb_mask_t mask;
       unsigned int lookup_count, j;
-      unsigned int lookup_indexes[100];
+      unsigned int lookup_indexes[1000];
 
       if (rule->table_type != PANGO_OT_TABLE_GPOS)
 	continue;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]