aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/mcufont/mf_scaledfont.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-08-17 23:32:53 +1000
committerinmarket <andrewh@inmarket.com.au>2013-08-17 23:32:53 +1000
commita2b27a6f5c404a8b8883c0f7d50279550120035a (patch)
tree6bf7bc58c59e6a94844f97e3596c2ffc84ced3c2 /src/gdisp/mcufont/mf_scaledfont.h
parent964ebc6e4a4ac647ad6c28bf8820f60fedcc0a95 (diff)
downloaduGFX-a2b27a6f5c404a8b8883c0f7d50279550120035a.tar.gz
uGFX-a2b27a6f5c404a8b8883c0f7d50279550120035a.tar.bz2
uGFX-a2b27a6f5c404a8b8883c0f7d50279550120035a.zip
Add new hand built bitmap fonts to replace old UI1 and UI2.
Allow scaled fonts to be staticly defined. Update new fonts handling so UI1 and UI2 have Narrow and Double variants. Update example gfxconf.h. Fix new font rules. Add support for an application program to add their own fonts. Make system font handling includes root relative.
Diffstat (limited to 'src/gdisp/mcufont/mf_scaledfont.h')
-rw-r--r--src/gdisp/mcufont/mf_scaledfont.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gdisp/mcufont/mf_scaledfont.h b/src/gdisp/mcufont/mf_scaledfont.h
index f378ca67..5fdc0980 100644
--- a/src/gdisp/mcufont/mf_scaledfont.h
+++ b/src/gdisp/mcufont/mf_scaledfont.h
@@ -27,4 +27,16 @@ MF_EXTERN void mf_scale_font(struct mf_scaledfont_s *newfont,
const struct mf_font_s *basefont,
uint8_t x_scale, uint8_t y_scale);
+#ifdef MF_SCALEDFONT_INTERNALS
+/* Internal functions, don't use these directly. */
+MF_EXTERN uint8_t mf_scaled_render_character(const struct mf_font_s *font,
+ int16_t x0, int16_t y0,
+ mf_char character,
+ mf_pixel_callback_t callback,
+ void *state);
+
+MF_EXTERN uint8_t mf_scaled_character_width(const struct mf_font_s *font,
+ mf_char character);
+#endif
+
#endif