NetSurf
font_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Vincent Sanders <vince@simtec.co.uk>
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 <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef NETSURF_FB_FONT_INTERNAL_H
20#define NETSURF_FB_FONT_INTERNAL_H
21
22#include <stdbool.h>
23
25 const char *name;
27};
28
29#define FB_FONT_WIDTH 8
30#define FB_FONT_HEIGHT 16
31#define FB_FONT_PITCH 8
32
35 FB_ITALIC = (1 << 0),
36 FB_BOLD = (1 << 1),
38};
39
41int fb_get_font_size(const plot_font_style_t *fstyle);
42
43#define codepoint_displayable(u) \
44 (!(u >= 0x200b && u <= 0x200f))
45
46const uint8_t *fb_get_glyph(uint32_t ucs4, enum fb_font_style style, int scale);
47
48#endif /* NETSURF_FB_FONT_INTERNAL_H */
49
const uint8_t * fb_get_glyph(uint32_t ucs4, enum fb_font_style style, int scale)
int fb_get_font_size(const plot_font_style_t *fstyle)
fb_font_style
Definition: font_internal.h:33
@ FB_BOLD
Definition: font_internal.h:36
@ FB_BOLD_ITALIC
Definition: font_internal.h:37
@ FB_REGULAR
Definition: font_internal.h:34
@ FB_ITALIC
Definition: font_internal.h:35
enum fb_font_style fb_get_font_style(const plot_font_style_t *fstyle)
const char * name
Definition: font_internal.h:25
Font style for plotting.
Definition: plot_style.h:111