2 * Copyright(C) 2010 Samsung Electronics
3 * InKi Dae <inki.dae@samsung.com>
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file COPYING in the main directory of this archive
13 struct fbutil_font_desc {
21 /* define 8 index color table */
37 /* Max. length for the name of a predefined font */
38 #define MAX_FONT_NAME 32
40 /* max index color count */
41 #define MAX_INDEX_TABLE (8 + 1)
44 void set_font_color(unsigned char index);
46 /* set coordinates for x and y axis */
47 void set_font_xy(unsigned int x, unsigned int y);
49 /* get coordinates for x and y axis */
50 void get_font_xy(unsigned int *x, unsigned int *y);
52 /* draw string with user-requested color */
53 void fb_printk(const char *s, ...);
55 /* clear the framebuffer */
56 void fb_clear(int range);
58 /* get current string position. */
59 unsigned int get_chars(void);
61 /* exit font module. */
64 /* initialize font module and then create color table. */
67 #endif /* _FBUTILS_H */