From: handa Date: Wed, 29 Jun 2005 10:57:39 +0000 (+0000) Subject: (OTF_drive_gsub_internal): Initialize X-Git-Tag: REL-0-9-5~54 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d24adfe97880fcf3c5ecb0221881b25f0e25daaa;p=m17n%2Flibotf.git (OTF_drive_gsub_internal): Initialize positioning_type member to 0. (OTF_drive_gpos): Likewise. --- 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];