diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-14 06:26:16 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-14 06:26:16 +0000 |
commit | 1c2aa35371aed8d895b3448dad865b913da57cfb (patch) | |
tree | 8a790ad8efe5d0abd73eaf77adc854d336ce0ef4 /apps/gui/skin_engine/skin_fonts.h | |
parent | ed21ab1c8c9b16ec62933313c3d36a93d9255f62 (diff) | |
download | rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.tar.gz rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.zip |
FS#10984 - multifont! 2 major additions:
1) seperate UI font for the remote and main displays
2) allow individual skins to load additional fonts for use in the skin (Uo to 7 extra in this first version) see CustomWPS for info on how to load a font in the skins.
Code should always use FONT_UI+screen_number to get the correct user font
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24644 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_fonts.h')
-rw-r--r-- | apps/gui/skin_engine/skin_fonts.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_fonts.h b/apps/gui/skin_engine/skin_fonts.h new file mode 100644 index 0000000000..3b43012de3 --- /dev/null +++ b/apps/gui/skin_engine/skin_fonts.h | |||
@@ -0,0 +1,46 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: skin_tokens.c 24526 2010-02-05 23:58:53Z jdgordon $ | ||
9 | * | ||
10 | * Copyright (C) 2010 Jonathan Gordon | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #include "config.h" | ||
23 | #include <stdio.h> | ||
24 | #include <string.h> | ||
25 | #include <stdlib.h> | ||
26 | |||
27 | #include "file.h" | ||
28 | #include "settings.h" | ||
29 | #include "font.h" | ||
30 | #include "skin_buffer.h" | ||
31 | |||
32 | #ifndef _SKINFONTS_H_ | ||
33 | #define _SKINFONTS_H_ | ||
34 | |||
35 | #define MAXUSERFONTS (MAXFONTS - SYSTEMFONTCOUNT) | ||
36 | |||
37 | void skin_font_init(void); | ||
38 | |||
39 | /* load a font into the skin buffer. return the font id. */ | ||
40 | int skin_font_load(char* font_name); | ||
41 | |||
42 | /* unload a skin font. If a font has been loaded more than once it wont actually | ||
43 | * be unloaded untill all references have been unloaded */ | ||
44 | void skin_font_unload(int font_id); | ||
45 | |||
46 | #endif | ||