gtk/: Fix build without PangoFT2 and HarfBuzz
On Windows HarfBuzz and PangoFT2 are optional, so we need to ensure that we only build the bits that require HarfBuzz and PangoFT2 when needed. We may need to see later whether we can get the needed functionality in gtkfontchooserwidget.c with the Windows APIs without the need of HarfBuzz nor PangoFT2 (and starting programs on Windows using FontConfig is very slow).
This commit is contained in:
@ -15,6 +15,8 @@
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#if defined (HAVE_HARFBUZZ) && defined (HAVE_PANGOFT)
|
||||
#include <hb-ot.h>
|
||||
|
||||
#include "language-names.h"
|
||||
@ -237,3 +239,4 @@ get_language_name_for_tag (guint32 tag)
|
||||
|
||||
return get_language_name (pango_language_from_string (s));
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user