Add "elfzip" target to make which creates a zip of all elf files, as mapzip does...
[maemo-rb.git] / apps / gui / skin_engine / skin_fonts.h
blob698ed4fe7cba6cdfba4ec8bc46c388cffce2762c
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2010 Jonathan Gordon
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #include "config.h"
23 #include <stdio.h>
24 #include <string.h>
25 #include <stdlib.h>
27 #include "file.h"
28 #include "settings.h"
29 #include "font.h"
31 #ifndef _SKINFONTS_H_
32 #define _SKINFONTS_H_
34 #if LCD_HEIGHT > 160
35 #define SKIN_FONT_SIZE (1024*10)
36 #else
37 #define SKIN_FONT_SIZE (1024*3)
38 #endif
39 #define GLYPHS_TO_CACHE 256
41 void skin_font_init(void);
43 /* load a font into the skin buffer. return the font id.
44 * reserve room for glyphs glyphs */
45 int skin_font_load(char* font_name, int glyphs);
47 /* unload a skin font. If a font has been loaded more than once it wont actually
48 * be unloaded untill all references have been unloaded */
49 void skin_font_unload(int font_id);
50 #endif