From 19f1503d7640b708c3e5733e458e75eb953e0591 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 24 Apr 2006 20:55:46 +0000 Subject: [PATCH] * On win32, only disable the built-in fonts, not all the font functions. --- cucul/font.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cucul/font.c b/cucul/font.c index a3fd72f..5fed167 100644 --- a/cucul/font.c +++ b/cucul/font.c @@ -18,7 +18,6 @@ #include "config.h" #include "common.h" -#if !defined(USE_WIN32) #if !defined(__KERNEL__) # if defined(HAVE_ENDIAN_H) # include @@ -37,8 +36,10 @@ #include "cucul_internals.h" /* Internal fonts */ +#if !defined(USE_WIN32) #include "font_mono9.h" #include "font_monobold12.h" +#endif /* Helper structures for font loading */ #if !defined(_DOXYGEN_SKIP_ME) @@ -118,10 +119,12 @@ cucul_font_t *cucul_load_font(void const *data, unsigned int size) if(size == 0) { +#if !defined(USE_WIN32) if(!strcasecmp(data, "Monospace 9")) return cucul_load_font(mono9_data, mono9_size); if(!strcasecmp(data, "Monospace Bold 12")) return cucul_load_font(monobold12_data, monobold12_size); +#endif return NULL; } @@ -440,4 +443,3 @@ void cucul_render_canvas(cucul_canvas_t *cv, cucul_font_t *f, * }; */ -#endif