summaryrefslogtreecommitdiff
path: root/firmware/export/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/font.h')
-rw-r--r--firmware/export/font.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/font.h b/firmware/export/font.h
index 57991a5d50..649a1d080d 100644
--- a/firmware/export/font.h
+++ b/firmware/export/font.h
@@ -19,6 +19,8 @@
19#ifndef _FONT_H 19#ifndef _FONT_H
20#define _FONT_H 20#define _FONT_H
21 21
22#include "inttypes.h"
23
22/* 24/*
23 * Incore font and image definitions 25 * Incore font and image definitions
24 */ 26 */
@@ -99,7 +101,7 @@ struct font {
99 const unsigned short *offset; /* offsets into bitmap data*/ 101 const unsigned short *offset; /* offsets into bitmap data*/
100 const unsigned char *width; /* character widths or NULL if fixed*/ 102 const unsigned char *width; /* character widths or NULL if fixed*/
101 int defaultchar; /* default char (not glyph index)*/ 103 int defaultchar; /* default char (not glyph index)*/
102 long bits_size; /* # bytes of glyph bits*/ 104 int32_t bits_size; /* # bytes of glyph bits*/
103}; 105};
104 106
105/* font routines*/ 107/* font routines*/
@@ -111,7 +113,6 @@ int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber)
111int font_get_width(struct font* ft, unsigned short ch); 113int font_get_width(struct font* ft, unsigned short ch);
112const unsigned char * font_get_bits(struct font* ft, unsigned short ch); 114const unsigned char * font_get_bits(struct font* ft, unsigned short ch);
113void glyph_cache_save(void); 115void glyph_cache_save(void);
114void glyph_cache_load(void);
115 116
116#else /* HAVE_LCD_BITMAP */ 117#else /* HAVE_LCD_BITMAP */
117 118