Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3584 sourcerer 1
/*
2
 * Copyright 2008 Vincent Sanders 
3
 *
4
 * This file is part of NetSurf, http://www.netsurf-browser.org/
5
 *
6
 * NetSurf is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; version 2 of the License.
9
 *
10
 * NetSurf is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see .
17
 */
18
 
19
#ifndef NETSURF_FB_FONT_INTERNAL_H
20
#define NETSURF_FB_FONT_INTERNAL_H
21
 
22
struct fb_font_desc {
23
    const char *name;
24
    int width, height;
25
    const char *encoding;
26
    const uint32_t *data;
27
};
28
 
29
extern const struct fb_font_desc font_regular;
30
extern const struct fb_font_desc font_italic;
31
extern const struct fb_font_desc font_bold;
32
extern const struct fb_font_desc font_italic_bold;
33
 
34
extern const struct fb_font_desc* fb_get_font(const plot_font_style_t *fstyle);
35
 
36
extern utf8_convert_ret utf8_to_font_encoding(const struct fb_font_desc* font,
37
				       const char *string,
38
				       size_t len,
39
				       char **result);
40
 
41
#endif /* NETSURF_FB_FONT_INTERNAL_H */
42