changeset 91162:2b263ef46651

(ftfont_open): Set members maybe_otf and otf of ftfont_info only when HAVE_LIBOTF is defined.
author Kenichi Handa <handa@m17n.org>
date Mon, 03 Dec 2007 01:42:01 +0000
parents abe54c5d3a9b
children a12e3e58ec94
files src/ftfont.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ftfont.c	Sun Dec 02 16:31:17 2007 +0000
+++ b/src/ftfont.c	Mon Dec 03 01:42:01 2007 +0000
@@ -735,8 +735,10 @@
   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);