From ea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9 Mon Sep 17 00:00:00 2001 From: Fred Bauer Date: Sat, 19 Nov 2011 23:34:26 +0000 Subject: 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 --- firmware/export/font.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/export') 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 { int fd; /* fd for the font file. >= 0 if cached */ int fd_width; /* fd for the font file. >= 0 if cached */ int fd_offset; /* fd for the font file. >= 0 if cached */ + int handle; /* core_allocator handle */ unsigned char *buffer_start; /* buffer to store the font in */ unsigned char *buffer_position; /* position in the buffer */ unsigned char *buffer_end; /* end of the buffer */ @@ -119,8 +120,7 @@ struct font { void font_init(void) INIT_ATTR; const char* font_filename(int font_id); int font_load(const char *path); -int font_load_ex(const char *path, size_t buffer_size); -int font_glyphs_to_bufsize(const char *path, int glyphs); +int font_load_ex(const char *path, size_t buffer_size, int glyphs); void font_unload(int font_id); void font_unload_all(void); void font_lock(int font_id, bool lock); -- cgit v1.2.3