*** empty log message ***
[m17n/m17n-test.git] / flt.c
diff --git a/flt.c b/flt.c
index 6df60a8..95145d5 100644 (file)
--- a/flt.c
+++ b/flt.c
@@ -368,11 +368,8 @@ drive_otf (MFLTFont *font, MFLT_OTF_Spec *spec,
       MFLTGlyph *base = NULL, *mark = NULL, *g;
       int x_ppem, y_ppem, x_scale, y_scale;
 
-      if (OTF_check_features (otf, 1,
-                             spec->script, spec->langsys,
-                             spec->gpos, spec->gpos_count) != 1
-         || (OTF_drive_gpos (otf, &otf_gstring, script, langsys,
-                             gpos_features) < 0))
+      if (OTF_drive_gpos (otf, &otf_gstring, script, langsys, gpos_features)
+         < 0)
        return to;
 
       face = ((FontInfo *) font)->face;
@@ -418,7 +415,7 @@ drive_otf (MFLTFont *font, MFLT_OTF_Spec *spec,
                  adjustment[i].yadv
                    += otfg->f.f1.value->YAdvance * y_scale / 0x10000;
                if (format & OTF_YAdvDevice)
-                 adjustment[i].xadv
+                 adjustment[i].yadv
                    += DEVICE_DELTA (otfg->f.f1.value->YAdvDevice, y_ppem);
                adjustment[i].set = 1;
              }