From d24adfe97880fcf3c5ecb0221881b25f0e25daaa Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 29 Jun 2005 10:57:39 +0000 Subject: [PATCH] (OTF_drive_gsub_internal): Initialize positioning_type member to 0. (OTF_drive_gpos): Likewise. --- src/otfdrive.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/otfdrive.c b/src/otfdrive.c index 51053b3..fd72281 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -1350,7 +1350,10 @@ OTF_drive_gsub_internal (OTF *otf, OTF_GlyphString *gstring, int i, n; for (i = 0; i < gstring->used; i++) - gstring->glyphs[i].f.index.from = gstring->glyphs[i].f.index.to = i; + { + gstring->glyphs[i].positioning_type = 0; + gstring->glyphs[i].f.index.from = gstring->glyphs[i].f.index.to = i; + } if (! otf->gsub && OTF_get_table (otf, "GSUB") < 0) @@ -1425,6 +1428,9 @@ OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring, int *lookup_indices; int i, n; + for (i = 0; i < gstring->used; i++) + gstring->glyphs[i].positioning_type = 0; + if (! otf->gpos && OTF_get_table (otf, "GPOS") < 0) return errret; @@ -1448,9 +1454,6 @@ OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring, if (n < 0) return errret; - for (i = 0; i < gstring->used; i++) - gstring->glyphs[i].positioning_type = 0; - for (i = 0; i < n; i++) { int index = lookup_indices[i]; -- 1.7.10.4