(mfont__ft_drive_otf): Fix previous change.
[m17n/m17n-lib.git] / src / font-ft.c
index f40d383..426bc4f 100644 (file)
@@ -1106,7 +1106,12 @@ mfont__ft_drive_otf (MGlyphString *gstring, int from, int to,
              /* Not yet supported.  */
              break;
            }
-         prev = g;
+         if (g->GlyphClass == OTF_GlyphClass0)
+           base = mark = g;
+         else if (g->GlyphClass == OTF_GlyphMark)
+           mark = g;
+         else
+           base = g;
        }
     }
   return to;