aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/mcufont/mf_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdisp/mcufont/mf_config.h')
-rw-r--r--src/gdisp/mcufont/mf_config.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gdisp/mcufont/mf_config.h b/src/gdisp/mcufont/mf_config.h
index 317e36f5..36268c6b 100644
--- a/src/gdisp/mcufont/mf_config.h
+++ b/src/gdisp/mcufont/mf_config.h
@@ -10,8 +10,16 @@
#ifndef _MF_CONFIG_H_
#define _MF_CONFIG_H_
+/*******************************************************
+ * Configuration settings related to GFX *
+ *******************************************************/
+
#include <gfx.h>
+#if !GFX_USE_GDISP || !GDISP_NEED_TEXT
+ #define MF_NO_COMPILE // Don't compile any font code
+#endif
+
/* Prevent double definitions of standard int types */
#define MF_NO_STDINT_H
@@ -29,7 +37,6 @@
#define MF_USE_ADVANCED_WORDWRAP 0
#define MF_USE_JUSTIFY 0
-
/*******************************************************
* Configuration settings related to build environment *
*******************************************************/