aboutsummaryrefslogtreecommitdiffstats
path: root/src/ftfont.c
diff options
context:
space:
mode:
authorKenichi Handa2009-03-30 05:39:01 +0000
committerKenichi Handa2009-03-30 05:39:01 +0000
commite386973195212656d80a767e7fc0afb1baf6a75f (patch)
treeaa91890877e332cea4d525f08707235c406a3a47 /src/ftfont.c
parentfd7299fdfd77cef029eec7572746f87a93e63508 (diff)
downloademacs-e386973195212656d80a767e7fc0afb1baf6a75f.tar.gz
emacs-e386973195212656d80a767e7fc0afb1baf6a75f.zip
Fix previous change. Define ftfont_variation_glyphs
even if HAVE_M17N_FLT is not defined.
Diffstat (limited to 'src/ftfont.c')
-rw-r--r--src/ftfont.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ftfont.c b/src/ftfont.c
index 33fb9b455a6..aa9777acf34 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -382,14 +382,10 @@ static int ftfont_anchor_point P_ ((struct font *, unsigned, int,
382static Lisp_Object ftfont_otf_capability P_ ((struct font *)); 382static Lisp_Object ftfont_otf_capability P_ ((struct font *));
383static Lisp_Object ftfont_shape P_ ((Lisp_Object)); 383static Lisp_Object ftfont_shape P_ ((Lisp_Object));
384 384
385#ifdef HAVE_LIBOTF
386#ifdef HAVE_M17N_FLT
387#ifdef HAVE_OTF_GET_VARIATION_GLYPHS 385#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
388static int ftfont_variation_glyphs P_ ((struct font *, int c, 386static int ftfont_variation_glyphs P_ ((struct font *, int c,
389 unsigned variations[256])); 387 unsigned variations[256]));
390#endif /* HAVE_OTF_GET_VARIATION_GLYPHS */ 388#endif /* HAVE_OTF_GET_VARIATION_GLYPHS */
391#endif /* HAVE_M17N_FLT */
392#endif /* HAVE_LIBOTF */
393 389
394struct font_driver ftfont_driver = 390struct font_driver ftfont_driver =
395 { 391 {
@@ -430,7 +426,7 @@ struct font_driver ftfont_driver =
430#endif /* not (HAVE_M17N_FLT && HAVE_LIBOTF) */ 426#endif /* not (HAVE_M17N_FLT && HAVE_LIBOTF) */
431 NULL, /* check */ 427 NULL, /* check */
432 428
433#if defined (HAVE_LIBOTF) && defined (HAVE_M17N_FLT) && defined (HAVE_OTF_GET_VARIATION_GLYPHS) 429#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
434 ftfont_variation_glyphs 430 ftfont_variation_glyphs
435#else 431#else
436 NULL 432 NULL
@@ -2023,6 +2019,8 @@ ftfont_shape (lgstring)
2023 return ftfont_shape_by_flt (lgstring, font, ftfont_info->ft_size->face, otf); 2019 return ftfont_shape_by_flt (lgstring, font, ftfont_info->ft_size->face, otf);
2024} 2020}
2025 2021
2022#endif /* HAVE_M17N_FLT */
2023
2026#ifdef HAVE_OTF_GET_VARIATION_GLYPHS 2024#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
2027 2025
2028static int 2026static int
@@ -2040,7 +2038,6 @@ ftfont_variation_glyphs (font, c, variations)
2040} 2038}
2041 2039
2042#endif /* HAVE_OTF_GET_VARIATION_GLYPHS */ 2040#endif /* HAVE_OTF_GET_VARIATION_GLYPHS */
2043#endif /* HAVE_M17N_FLT */
2044#endif /* HAVE_LIBOTF */ 2041#endif /* HAVE_LIBOTF */
2045 2042
2046Lisp_Object 2043Lisp_Object