summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorFred Bauer <fred.w.bauer@gmail.com>2011-11-19 23:34:26 +0000
committerFred Bauer <fred.w.bauer@gmail.com>2011-11-19 23:34:26 +0000
commitea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9 (patch)
tree5ff1f18c66be4c25f32e03ffadeb6bb3cb568656 /firmware/export
parentd78e05c5722356fd8ce20cdb4c40df44cc2b4d33 (diff)
downloadrockbox-ea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9.tar.gz
rockbox-ea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9.zip
FS#12293 Global default glyph setting in System > Limits > Glyphs To Cache. Defaults to 250. This saves a lot of RAM while still allowing non-English users to have adequate glyph coverage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31031 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/font.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/font.h b/firmware/export/font.h
index 914d3aa2ff..faa10391f8 100644
--- a/firmware/export/font.h
+++ b/firmware/export/font.h
@@ -102,6 +102,7 @@ struct font {
102 int fd; /* fd for the font file. >= 0 if cached */ 102 int fd; /* fd for the font file. >= 0 if cached */
103 int fd_width; /* fd for the font file. >= 0 if cached */ 103 int fd_width; /* fd for the font file. >= 0 if cached */
104 int fd_offset; /* fd for the font file. >= 0 if cached */ 104 int fd_offset; /* fd for the font file. >= 0 if cached */
105 int handle; /* core_allocator handle */
105 unsigned char *buffer_start; /* buffer to store the font in */ 106 unsigned char *buffer_start; /* buffer to store the font in */
106 unsigned char *buffer_position; /* position in the buffer */ 107 unsigned char *buffer_position; /* position in the buffer */
107 unsigned char *buffer_end; /* end of the buffer */ 108 unsigned char *buffer_end; /* end of the buffer */
@@ -119,8 +120,7 @@ struct font {
119void font_init(void) INIT_ATTR; 120void font_init(void) INIT_ATTR;
120const char* font_filename(int font_id); 121const char* font_filename(int font_id);
121int font_load(const char *path); 122int font_load(const char *path);
122int font_load_ex(const char *path, size_t buffer_size); 123int font_load_ex(const char *path, size_t buffer_size, int glyphs);
123int font_glyphs_to_bufsize(const char *path, int glyphs);
124void font_unload(int font_id); 124void font_unload(int font_id);
125void font_unload_all(void); 125void font_unload_all(void);
126void font_lock(int font_id, bool lock); 126void font_lock(int font_id, bool lock);