font build

This commit is contained in:
olikraus 2015-11-12 23:03:08 +01:00
parent e4f0f0d258
commit 04fb081057
3 changed files with 21 additions and 2 deletions

View File

@ -304,6 +304,16 @@ void u8g2_Setup_TGA_DESC(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb);
void u8g2_Setup_TGA_LCD(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb);
/*==========================================*/
/*==========================================*/
/* start font list */
xxxxx
/* end font list */
/*==========================================*/
/* C++ compatible */

View File

@ -458,6 +458,11 @@ void u8x8_Set8x8Font(u8x8_t *u8x8, const uint8_t *font_8x8);
void u8x8_Draw8x8Glyph(u8x8_t *u8x8, uint8_t x, uint8_t y, uint8_t encoding);
void u8x8_Draw8x8String(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s);
/*==========================================*/
/* start font list */
xxxxx
/* end font list */
#ifdef __cplusplus
}

View File

@ -142,10 +142,13 @@ typedef void (*cbfn_t)(int i, int fm, char *fms, int bm, char *bms, int mm, char
struct groupinfo gi[] = {
{ "X11" },
{ "fontstruct" },
};
struct fontinfo fi[] = {
{ 0, "6x10.bdf", "6x10", 0, 1, BM_T|BM_M|BM_8, FM_C|FM_8, MM_F|MM_R|MM_N }
{ 0, "6x10.bdf", "6x10", 0, 0, BM_T|BM_M, FM_C, MM_F|MM_R|MM_N },
{ 0, "amstrad_cpc.bdf", "amstrad_cpc", 1, 0, BM_8, FM_C|FM_8, MM_F|MM_R|MM_N }
};
char *bdf_path = "../bdf/";
@ -333,7 +336,8 @@ int main(void)
fclose(u8x8_font_list_fp);
insert_into_file("test.h", u8g2_prototypes, "/* start font list */", "/* end font list */");
insert_into_file("../../../csrc/u8g2.h", u8g2_prototypes, "/* start font list */", "/* end font list */");
insert_into_file("../../../csrc/u8x8.h", u8x8_prototypes, "/* start font list */", "/* end font list */");
return 0;
}