From 0d674a059d7b1366697cbc621c9a9b77f1d5b359 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 3 Dec 2007 01:42:01 +0000 Subject: [PATCH] (ftfont_open): Set members maybe_otf and otf of ftfont_info only when HAVE_LIBOTF is defined. --- src/ftfont.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ftfont.c b/src/ftfont.c index 4404d6962d0..48244ff28dc 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -735,8 +735,10 @@ ftfont_open (f, entity, pixel_size) if (! ftfont_info) return NULL; ftfont_info->ft_size = ft_size; +#ifdef HAVE_LIBOTF ftfont_info->maybe_otf = ft_face->face_flags & FT_FACE_FLAG_SFNT; ftfont_info->otf = NULL; +#endif /* HAVE_LIBOTF */ font = (struct font *) ftfont_info; font->format = ftfont_font_format (pattern); -- 2.39.5