# HG changeset patch # User Kenichi Handa # Date 1196646121 0 # Node ID 2b263ef4665149af9dc3ff15ebbf976cfe155ac6 # Parent abe54c5d3a9b59269c3816707b34c652f02d03e2 (ftfont_open): Set members maybe_otf and otf of ftfont_info only when HAVE_LIBOTF is defined. diff -r abe54c5d3a9b -r 2b263ef46651 src/ftfont.c --- 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);