summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/font.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/firmware/export/font.h b/firmware/export/font.h
index 75b012d722..0fe6c30f2c 100644
--- a/firmware/export/font.h
+++ b/firmware/export/font.h
@@ -33,24 +33,6 @@
33#include "sysfont.h" 33#include "sysfont.h"
34#endif 34#endif
35 35
36/* max static loadable font buffer size */
37#ifndef MAX_FONT_SIZE
38#if LCD_HEIGHT > 64
39#if MEM > 2
40#define MAX_FONT_SIZE 60000
41#else
42#define MAX_FONT_SIZE 10000
43#endif
44#else
45#define MAX_FONT_SIZE 4000
46#endif
47#endif
48
49#ifndef FONT_HEADER_SIZE
50#define FONT_HEADER_SIZE 36
51#endif
52
53#define GLYPH_CACHE_FILE ROCKBOX_DIR"/.glyphcache"
54 36
55/* 37/*
56 * Fonts are specified by number, and used for display 38 * Fonts are specified by number, and used for display
@@ -102,7 +84,8 @@ struct font {
102 int firstchar; /* first character in bitmap*/ 84 int firstchar; /* first character in bitmap*/
103 int size; /* font size in glyphs*/ 85 int size; /* font size in glyphs*/
104 const unsigned char *bits; /* 8-bit column bitmap data*/ 86 const unsigned char *bits; /* 8-bit column bitmap data*/
105 const unsigned short *offset; /* offsets into bitmap data*/ 87 const void *offset; /* offsets into bitmap data,
88 uint16_t if bits_size < 0xFFDB else uint32_t*/
106 const unsigned char *width; /* character widths or NULL if fixed*/ 89 const unsigned char *width; /* character widths or NULL if fixed*/
107 int defaultchar; /* default char (not glyph index)*/ 90 int defaultchar; /* default char (not glyph index)*/
108 int32_t bits_size; /* # bytes of glyph bits*/ 91 int32_t bits_size; /* # bytes of glyph bits*/