NetSurf
frontends
framebuffer
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
24
struct
fb_font_desc
{
25
const
char
*
name
;
26
int
width
,
height
,
pitch
;
27
};
28
29
#define FB_FONT_WIDTH 8
30
#define FB_FONT_HEIGHT 16
31
#define FB_FONT_PITCH 8
32
33
enum
fb_font_style
{
34
FB_REGULAR
= 0,
35
FB_ITALIC
= (1 << 0),
36
FB_BOLD
= (1 << 1),
37
FB_BOLD_ITALIC
= (
FB_ITALIC
|
FB_BOLD
)
38
};
39
40
enum
fb_font_style
fb_get_font_style
(
const
plot_font_style_t
*fstyle);
41
int
fb_get_font_size
(
const
plot_font_style_t
*fstyle);
42
43
#define codepoint_displayable(u) \
44
(!(u >= 0x200b && u <= 0x200f))
45
46
const
uint8_t *
fb_get_glyph
(uint32_t ucs4,
enum
fb_font_style
style,
int
scale);
47
48
#endif
/* NETSURF_FB_FONT_INTERNAL_H */
49
fb_get_glyph
const uint8_t * fb_get_glyph(uint32_t ucs4, enum fb_font_style style, int scale)
Definition:
font_internal.c:250
fb_get_font_size
int fb_get_font_size(const plot_font_style_t *fstyle)
Definition:
font_internal.c:212
fb_font_style
fb_font_style
Definition:
font_internal.h:33
FB_BOLD
@ FB_BOLD
Definition:
font_internal.h:36
FB_BOLD_ITALIC
@ FB_BOLD_ITALIC
Definition:
font_internal.h:37
FB_REGULAR
@ FB_REGULAR
Definition:
font_internal.h:34
FB_ITALIC
@ FB_ITALIC
Definition:
font_internal.h:35
fb_get_font_style
enum fb_font_style fb_get_font_style(const plot_font_style_t *fstyle)
Definition:
font_internal.c:199
fb_font_desc
Definition:
font_internal.h:24
fb_font_desc::pitch
int pitch
Definition:
font_internal.h:26
fb_font_desc::height
int height
Definition:
font_internal.h:26
fb_font_desc::name
const char * name
Definition:
font_internal.h:25
fb_font_desc::width
int width
Definition:
font_internal.h:26
plot_font_style
Font style for plotting.
Definition:
plot_style.h:111
Generated on Tue Nov 12 2024 23:39:51 for NetSurf by
1.9.4