1 /* Generate scaled (nearest-neighbor) fonts. This can be used for displaying
2  * larger text without spending the memory required for including larger fonts.
3  */
4 
5 #ifndef _MF_SCALEDFONT_H_
6 #define _MF_SCALEDFONT_H_
7 
8 #include "mf_font.h"
9 
10 struct mf_scaledfont_s
11 {
12     struct mf_font_s font;
13 
14     const struct mf_font_s *basefont;
15     uint8_t x_scale;
16     uint8_t y_scale;
17 };
18 
19 MF_EXTERN void mf_scale_font(struct mf_scaledfont_s *newfont,
20                              const struct mf_font_s *basefont,
21                              uint8_t x_scale, uint8_t y_scale);
22 
23 #endif
24