]> git.eshelyaron.com Git - emacs.git/commitdiff
(ftfont_open): Set members maybe_otf and otf of
authorKenichi Handa <handa@m17n.org>
Mon, 3 Dec 2007 01:42:01 +0000 (01:42 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 3 Dec 2007 01:42:01 +0000 (01:42 +0000)
ftfont_info only when HAVE_LIBOTF is defined.

src/ftfont.c

index 4404d6962d0b49519a111eb4a618d074584b35f6..48244ff28dc32e84d85adc9dd956e4a9f077415e 100644 (file)
@@ -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);