From 93918ff9a2e52c5225a5ff9f5dc7cf0e787768a6 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 15 Jan 2010 12:13:10 +0000 Subject: [PATCH] (ft_try_otf): New function. (mfont__ft_driver): Set ft_try_otf. --- src/font-ft.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/font-ft.c b/src/font-ft.c index d9fcbd5..b04bbd8 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -2550,6 +2550,14 @@ ft_drive_otf (MFLTFont *font, MFLTOtfSpec *spec, return to; } +static int +ft_try_otf (MFLTFont *font, MFLTOtfSpec *spec, + MFLTGlyphString *in, int from, int to) +{ + return ft_drive_otf (font, spec, in, from, to, NULL, NULL); +} + + #ifdef HAVE_OTF static unsigned char *iterate_bitmap; @@ -2642,7 +2650,7 @@ ft_iterate_otf_feature (MFLTFont *font, MFLTOtfSpec *spec, MFontDriver mfont__ft_driver = { ft_select, ft_open, ft_find_metric, ft_has_char, ft_encode_char, ft_render, ft_list, ft_list_family_names, ft_check_capability, - ft_encapsulate, ft_close, ft_check_otf, ft_drive_otf, + ft_encapsulate, ft_close, ft_check_otf, ft_drive_otf, ft_try_otf, #ifdef HAVE_OTF ft_iterate_otf_feature #endif /* HAVE_OTF */ -- 1.7.10.4