2009-02-20 12:51:21 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Vincent Sanders <vince@simtec.co.uk>
|
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2009-06-28 22:32:47 +04:00
|
|
|
#ifndef NETSURF_FB_FONT_INTERNAL_H
|
|
|
|
#define NETSURF_FB_FONT_INTERNAL_H
|
2009-02-20 12:51:21 +03:00
|
|
|
|
|
|
|
struct fb_font_desc {
|
|
|
|
const char *name;
|
|
|
|
int width, height;
|
|
|
|
const char *encoding;
|
|
|
|
const uint32_t *data;
|
|
|
|
};
|
|
|
|
|
2010-02-07 01:32:39 +03:00
|
|
|
extern const struct fb_font_desc font_regular;
|
|
|
|
extern const struct fb_font_desc font_italic;
|
|
|
|
extern const struct fb_font_desc font_bold;
|
|
|
|
extern const struct fb_font_desc font_italic_bold;
|
2009-02-20 12:51:21 +03:00
|
|
|
|
2009-07-21 14:59:53 +04:00
|
|
|
extern const struct fb_font_desc* fb_get_font(const plot_font_style_t *fstyle);
|
2009-02-20 12:51:21 +03:00
|
|
|
|
|
|
|
extern utf8_convert_ret utf8_to_font_encoding(const struct fb_font_desc* font,
|
2010-02-07 01:32:39 +03:00
|
|
|
const char *string,
|
2009-02-20 12:51:21 +03:00
|
|
|
size_t len,
|
|
|
|
char **result);
|
|
|
|
|
2009-06-28 22:32:47 +04:00
|
|
|
#endif /* NETSURF_FB_FONT_INTERNAL_H */
|
2009-02-20 12:51:21 +03:00
|
|
|
|