diff options
author | Du Huanpeng <u74147@gmail.com> | 2015-11-22 20:24:49 +0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-11-23 08:21:08 +0100 |
commit | ea682776db018af2d249097f1a682ef0881e3d0e (patch) | |
tree | f936fb0e5ea8378f6e55c19b8a71c0ee3288dafe /include | |
parent | 314b5402d9f90e4be4be2bbe7c0072876f70281c (diff) | |
download | barebox-ea682776db018af2d249097f1a682ef0881e3d0e.tar.gz barebox-ea682776db018af2d249097f1a682ef0881e3d0e.tar.xz |
font: fbconsole: add custom font supports
Signed-off-by: Du Huanpeng <u74147@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/font.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/font.h b/include/linux/font.h index f8b0e94787..feeab97191 100644 --- a/include/linux/font.h +++ b/include/linux/font.h @@ -12,17 +12,25 @@ #define _VIDEO_FONT_H #include <param.h> +#include <wchar.h> +struct font_index { + wchar_t wc; /* code of the char. */ + short index; /* offset of the char in the bitmap. */ +}; struct font_desc { const char *name; int width, height; + struct font_index *index; const void *data; + int num_chars; struct list_head list; }; /* Max. length for the name of a predefined font */ #define MAX_FONT_NAME 32 +extern int find_font_index(const struct font_desc *font, int ch); extern const struct font_desc *find_font_enum(int n); extern struct param_d *add_param_font(struct device_d *dev, int (*set)(struct param_d *p, void *priv), |