Not sure what changed here, but we want to
be able to build this without fontconfig too.
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <string.h>
+#ifdef HAVE_PANGOFT
#include <pango/pangofc-fontmap.h>
+#endif
#include <gtk/gtk.h>
+
static gboolean
monospace_filter (const PangoFontFamily *family,
const PangoFontFace *face,
font_button = gtk_font_button_new ();
+#ifdef HAVE_PANGOFT
if (argc > 0)
{
FcConfig *config;
pango_fc_font_map_set_config (PANGO_FC_FONT_MAP (fontmap), config);
gtk_font_chooser_set_font_map (GTK_FONT_CHOOSER (font_button), fontmap);
}
+#endif
gtk_font_button_set_use_font (GTK_FONT_BUTTON (font_button), TRUE);