ScummVM API documentation
freetype.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef GRAPHICS_FONTS_FREETYPE_H
23#define GRAPHICS_FONTS_FREETYPE_H
24
25#ifdef USE_FREETYPE2
26
27#include "common/scummsys.h"
28#include <ft2build.h>
29#include FT_FREETYPE_H
30#include FT_GLYPH_H
31
32namespace Graphics {
33namespace FreeType {
34
35extern FT_Error Init_FreeType(FT_Library *alibrary);
36extern FT_Error Init_FreeType_With_Mem(FT_Library *alibrary, FT_Memory *amem);
37extern FT_Error Done_FreeType(FT_Library library);
38extern FT_Error Done_FreeType_With_Mem(FT_Library library, FT_Memory mem);
39extern FT_Error Load_Glyph(FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags);
40extern FT_Error Get_Glyph(FT_GlyphSlot slot, FT_Glyph *aglyph);
41extern FT_Error Glyph_Copy(FT_Glyph source, FT_Glyph *target);
42extern FT_Error Glyph_To_Bitmap(FT_Glyph *the_glyph, FT_Render_Mode render_mode,
43 FT_Vector *origin, FT_Bool destroy);
44extern void Done_Glyph(FT_Glyph glyph);
45extern FT_Error Set_Pixel_Sizes(FT_Face face, FT_UInt pixel_width,
46 FT_UInt pixel_height);
47extern FT_Error New_Face(FT_Library library, const char *pathname,
48 FT_Long face_index, FT_Face *aface);
49extern FT_Error New_Memory_Face(FT_Library library, const FT_Byte *file_base,
50 FT_Long file_size, FT_Long face_index, FT_Face *aface);
51extern FT_Error Done_Face(FT_Face face);
52extern FT_UInt Get_Char_Index(FT_Face face, FT_ULong charcode);
53extern FT_Error Get_Kerning(FT_Face face, FT_UInt left_glyph,
54 FT_UInt right_glyph, FT_UInt kern_mode, FT_Vector *akerning);
55
56} // End of namespace FreeType
57} // End of namespace Graphics
58
59#endif
60
61#endif
62
Definition: formatinfo.h:28