summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-08-25 14:11:38 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-08-25 14:11:38 +0000
commitfaaf431d321f30881ac39342d4cdc2170b922cb6 (patch)
tree23689929fef19f4d572157e53eeef652057af8e8 /firmware/export
parent05d16b1d4e8947b23afc64a52ccfccbf2284d97b (diff)
Accept FS#11567 by Fred Bauer - better memory management for the skin fonts
%Fl now takes an optional 3rd param which is the number of glyphs to cache (default to 256). the smaller the number, the less ram will be used (i.e using 15 for a font which only shown numbers is a good idea) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27882 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/font.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/font.h b/firmware/export/font.h
index 7284564380..4aa99e4d05 100644
--- a/firmware/export/font.h
+++ b/firmware/export/font.h
@@ -121,6 +121,7 @@ void font_init(void) INIT_ATTR;
int font_load_remoteui(const char* path);
#endif
int font_load(struct font* pf, const char *path);
+int get_glyph_size(const char *path);
void font_unload(int font_id);
struct font* font_get(int font);