aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/mcufont/mf_font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdisp/mcufont/mf_font.c')
-rw-r--r--src/gdisp/mcufont/mf_font.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gdisp/mcufont/mf_font.c b/src/gdisp/mcufont/mf_font.c
index 7a4ebf95..ccf71bec 100644
--- a/src/gdisp/mcufont/mf_font.c
+++ b/src/gdisp/mcufont/mf_font.c
@@ -5,10 +5,18 @@
* http://ugfx.org/license.html
*/
-#include "mf_font.h"
+#include "mf_config.h"
#ifndef MF_NO_COMPILE
+#define MF_BWFONT_INTERNALS
+#define MF_RLEFONT_INTERNALS
+#define MF_SCALEDFONT_INTERNALS
+#include "mf_font.h"
+#include "mf_rlefont.h"
+#include "mf_bwfont.h"
+#include "mf_scaledfont.h"
+
#include <stdbool.h>
/* This will be made into a list of included fonts using macro magic. */
@@ -40,7 +48,7 @@ uint8_t mf_character_width(const struct mf_font_s *font,
mf_char character)
{
uint8_t width;
- width = font->character_width(font, character);
+ width = font->character_width(font, MFCHAR2UINT16(character));
if (!width)
{