*** empty log message ***
[m17n/m17n-test.git] / find-flt.c
index 7c67c9d..c256d12 100644 (file)
@@ -12,27 +12,19 @@ otf_tag (char *p)
   return (i < 4 ? 0 : tag);
 }
 
-
-
 int
 main (int argc, char **argv)
 {
-  MFLTGlyphString gstring;
-  MFLTGlyph g;
+  int c;
   MFLT *flt;
 
   M17N_INIT ();
 
-  gstring.glyph_size = sizeof (MFLTGlyph);
-  gstring.glyphs = &g;
-  gstring.allocated = gstring.used = 1;
-  gstring.script = otf_tag ("deva");
-  gstring.langsys = 0;
-  
-  g.c = 0x915;
-  flt = mflt_find (&gstring, 0, NULL, NULL);
+  c = 0x915;
+  flt = mflt_find (c, NULL);
   if (! flt)
     exit (1);
+  printf ("%s\n", mflt_name (flt));
   M17N_FINI ();
   exit (0);
 }