font prototype
This commit is contained in:
parent
04fb081057
commit
d8a1a2c418
11
csrc/u8g2.h
11
csrc/u8g2.h
|
@ -310,7 +310,16 @@ void u8g2_Setup_TGA_LCD(u8g2_t *u8g2, const u8g2_cb_t *u8g2_cb);
|
|||
|
||||
/*==========================================*/
|
||||
/* start font list */
|
||||
xxxxx
|
||||
extern const uint8_t u8g2_6x10_tf [] U8G2_FONT_SECTION("u8g2_6x10_tf");
|
||||
extern const uint8_t u8g2_6x10_tr [] U8G2_FONT_SECTION("u8g2_6x10_tr");
|
||||
extern const uint8_t u8g2_6x10_tn [] U8G2_FONT_SECTION("u8g2_6x10_tn");
|
||||
extern const uint8_t u8g2_6x10_mf [] U8G2_FONT_SECTION("u8g2_6x10_mf");
|
||||
extern const uint8_t u8g2_6x10_mr [] U8G2_FONT_SECTION("u8g2_6x10_mr");
|
||||
extern const uint8_t u8g2_6x10_mn [] U8G2_FONT_SECTION("u8g2_6x10_mn");
|
||||
extern const uint8_t u8g2_amstrad_cpc_8f [] U8G2_FONT_SECTION("u8g2_amstrad_cpc_8f");
|
||||
extern const uint8_t u8g2_amstrad_cpc_8r [] U8G2_FONT_SECTION("u8g2_amstrad_cpc_8r");
|
||||
extern const uint8_t u8g2_amstrad_cpc_8n [] U8G2_FONT_SECTION("u8g2_amstrad_cpc_8n");
|
||||
|
||||
/* end font list */
|
||||
|
||||
|
||||
|
|
|
@ -460,7 +460,10 @@ void u8x8_Draw8x8String(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s);
|
|||
|
||||
/*==========================================*/
|
||||
/* start font list */
|
||||
xxxxx
|
||||
extern const uint8_t u8x8_amstrad_cpc_8f [] U8X8_FONT_SECTION("u8x8_amstrad_cpc_8f");
|
||||
extern const uint8_t u8x8_amstrad_cpc_8r [] U8X8_FONT_SECTION("u8x8_amstrad_cpc_8r");
|
||||
extern const uint8_t u8x8_amstrad_cpc_8n [] U8X8_FONT_SECTION("u8x8_amstrad_cpc_8n");
|
||||
|
||||
/* end font list */
|
||||
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ void bdfconv(int i, int fm, char *fms, int bm, char *bms, int mm, char *mms)
|
|||
fprintf(out_fp, "const uint8_t %s[%d] U8G2_FONT_SECTION(\"%s\") \n", fontname, bf->target_cnt, fontname);
|
||||
|
||||
*/
|
||||
strcpy(font_prototype, "const uint8_t ");
|
||||
strcpy(font_prototype, "extern const uint8_t ");
|
||||
strcat(font_prototype, target_font_identifier);
|
||||
strcat(font_prototype, " []");
|
||||
|
||||
|
|
Loading…
Reference in New Issue