int
flt (MText *mt, int from, int to, MFLTFont *font, char *flt_name)
{
+ MDrawControl control;
+
+ memset (&control, 0, sizeof (MDrawControl));
+ control.two_dimensional = 1;
+ control.enable_bidi = 1;
+ control.anti_alias = 1;
+ /*control.disable_caching = 1;*/
mtext_put_prop (mt, from, to, Mfont, font->font);
- mdraw_text_extents (frame, mt, from, to, NULL, NULL, NULL, NULL);
+ mdraw_text_extents (frame, mt, from, to, &control, NULL, NULL, NULL);
return 0;
}