From d9b28ef2ef05d7b3be2d00acc0a17ae62b4a9ae1 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 3 Sep 2004 12:28:51 +0000 Subject: [PATCH] (GSTRING_INSERT): Fix size of reallocating memory. (lookup_gpos): For LooupType 5, fix finding a base/ligature glyph. --- src/otfdrive.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/otfdrive.c b/src/otfdrive.c index 975e969..c23ac74 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -905,7 +905,9 @@ lookup_gpos (OTF_LookupList *lookup_list, unsigned lookup_list_index, num_class[j] = 0; for (ligg = g - 1; - ligg >= gstring->glyphs && IGNORED_GLYPH (ligg, flag); + (ligg >= gstring->glyphs + && (IGNORED_GLYPH (ligg, flag) + || ligg->GlyphClass >= OTF_GlyphClassLigature)); ligg--) if (ligg->positioning_type == 5 && ligg->MarkAttachClass < mark_lig1->ClassCount) -- 1.7.10.4