From 4c97c22e00f6188425dbc6c38f5923f5b909311d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 3 Feb 2021 11:29:41 +0100 Subject: [PATCH] (Win32) Exclude HAVE_FONTCONFIG codepath for Windows for now --- gfx/drivers_font_renderer/freetype.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gfx/drivers_font_renderer/freetype.c b/gfx/drivers_font_renderer/freetype.c index cc271ba6df..d592ee594b 100644 --- a/gfx/drivers_font_renderer/freetype.c +++ b/gfx/drivers_font_renderer/freetype.c @@ -27,7 +27,13 @@ #include #include -#ifdef HAVE_FONTCONFIG +/* Was told by contributor that Windows support is pending, + * so exclude Windows for now */ +#if defined(HAVE_FONTCONFIG) && !defined(_WIN32) +#define HAVE_FONTCONFIG_SUPPORT +#endif + +#if defined(HAVE_FONTCONFIG_SUPPORT) #include #include "../../msg_hash.h" #endif @@ -245,7 +251,7 @@ static void *font_renderer_ft_init(const char *font_path, float font_size) err = FT_New_Memory_Face(handle->lib, font_data, font_size, 0, &handle->face); } else -#elif HAVE_FONTCONFIG +#elif defined(HAVE_FONTCONFIG_SUPPORT) /* if fallback font is requested, instead of loading it, we find the full font in the system */ if (!*font_path || strstr(font_path, "fallback")) { @@ -362,7 +368,7 @@ static const char *font_renderer_ft_get_default_font(void) { /* Since fontconfig will return parameters more than a simple path we will process these in the init function */ -#if defined(WIIU) || defined(HAVE_FONTCONFIG) +#if defined(WIIU) || defined(HAVE_FONTCONFIG_SUPPORT) return ""; #else size_t i;