#ifdef HAVE_FREETYPE
+#ifdef HAVE_FTBDF_H
#include <freetype/ftbdf.h>
+#endif
#ifdef HAVE_FONTCONFIG
static FcConfig *fc_config;
ft_info->charmap_list = charmap_list;
+#ifdef HAVE_FTBDF_H
if (! FT_IS_SCALABLE (ft_face))
{
BDF_PropertyRec prop;
FT_Get_BDF_Property (ft_face, "RESOLUTION_Y", &prop);
font->property[MFONT_RESY] = prop.u.integer;
}
+#endif
return family;
}
if (! mplist_get (plist, style)
&& (FT_IS_SCALABLE (ft_face)
- || FT_Get_BDF_Property (ft_face, "PIXEL_SIZE", &prop) == 0))
+#ifdef HAVE_FTBDF_H
+ || FT_Get_BDF_Property (ft_face, "PIXEL_SIZE", &prop) == 0
+#endif
+ ))
{
int basep;
MFTInfo *ft_info;
g->lbearing = 0;
g->rbearing = g->width = ft_face->available_sizes->width;
+#ifdef HAVE_FTBDF_H
if (FT_Get_BDF_Property (ft_face, "ASCENT", &prop) == 0)
{
g->ascent = prop.u.integer;
g->descent = prop.u.integer;
}
else
+#endif
{
g->ascent = ft_face->available_sizes->height;
g->descent = 0;