aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/fonts/build_fonts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdisp/fonts/build_fonts.sh')
-rw-r--r--src/gdisp/fonts/build_fonts.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gdisp/fonts/build_fonts.sh b/src/gdisp/fonts/build_fonts.sh
index b02dd22a..b6c26602 100644
--- a/src/gdisp/fonts/build_fonts.sh
+++ b/src/gdisp/fonts/build_fonts.sh
@@ -72,9 +72,16 @@ for file in *.c; do
defname='GDISP_INCLUDE_FONT_'$upper
echo '#if defined('$defname') && '$defname >> fonts.h
echo '#define GDISP_FONT_FOUND' >> fonts.h
- echo '#include "'$file'"' >> fonts.h
+ echo '#include "../src/gdisp/fonts/'$file'"' >> fonts.h
echo '#endif' >> fonts.h
done
+
+echo >> fonts.h
+echo '#if defined(GDISP_INCLUDE_USER_FONTS) && GDISP_INCLUDE_USER_FONTS' >> fonts.h
+echo '#define GDISP_FONT_FOUND' >> fonts.h
+echo '#include "userfonts.h"' >> fonts.h
+echo '#endif' >> fonts.h
+echo >> fonts.h
echo '#ifndef GDISP_FONT_FOUND' >> fonts.h
echo '#error "GDISP: No fonts have been included"' >> fonts.h
echo '#endif' >> fonts.h