NetSurf
font_freetype.h
Go to the documentation of this file.
1/*
2 * Copyright 2011 Ole Loots <ole@monochrom.net>
3 * This file is part of NetSurf, http://www.netsurf-browser.org/
4 *
5 * NetSurf is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *
9 * NetSurf is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef FONT_PLOTTER_FREETYPE
19#define FONT_PLOTTER_FREETYPE
20
21#include <ft2build.h>
22#include FT_FREETYPE_H
23#include FT_GLYPH_H
24#include "utils/utf8.h"
25
26/* defines for accesing the faces */
27#define FONT_FACE_DEFAULT 0
28
29#define FONT_FACE_SANS_SERIF 0
30#define FONT_FACE_SANS_SERIF_BOLD 1
31#define FONT_FACE_SANS_SERIF_ITALIC 2
32#define FONT_FACE_SANS_SERIF_ITALIC_BOLD 3
33#define FONT_FACE_MONOSPACE 4
34#define FONT_FACE_MONOSPACE_BOLD 5
35#define FONT_FACE_SERIF 6
36#define FONT_FACE_SERIF_BOLD 7
37#define FONT_FACE_CURSIVE 8
38#define FONT_FACE_FANTASY 9
39
40#define FONT_FACE_COUNT 10
41
42struct font_desc {
43 const char *name;
45 const char *encoding;
46};
47
48/* extern int ft_load_type; */
49
51
52#endif
int ctor_font_plotter_freetype(FONT_PLOTTER self)
const char * name
Definition: font_freetype.h:43
const char * encoding
Definition: font_freetype.h:45
UTF-8 manipulation functions (interface).