Commit 0d674a05 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(ftfont_open): Set members maybe_otf and otf of

ftfont_info only when HAVE_LIBOTF is defined.
parent 8f9380d7
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment