ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 
32 namespace Graphics {
33 namespace FreeType {
34 
35 extern FT_Error Init_FreeType(FT_Library *alibrary);
36 extern FT_Error Init_FreeType_With_Mem(FT_Library *alibrary, FT_Memory *amem);
37 extern FT_Error Done_FreeType(FT_Library library);
38 extern FT_Error Done_FreeType_With_Mem(FT_Library library, FT_Memory mem);
39 extern FT_Error Load_Glyph(FT_Face face, FT_UInt glyph_index, FT_Int32 load_flags);
40 extern FT_Error Get_Glyph(FT_GlyphSlot slot, FT_Glyph *aglyph);
41 extern FT_Error Glyph_Copy(FT_Glyph source, FT_Glyph *target);
42 extern FT_Error Glyph_To_Bitmap(FT_Glyph *the_glyph, FT_Render_Mode render_mode,
43  FT_Vector *origin, FT_Bool destroy);
44 extern void Done_Glyph(FT_Glyph glyph);
45 extern FT_Error Set_Pixel_Sizes(FT_Face face, FT_UInt pixel_width,
46  FT_UInt pixel_height);
47 extern FT_Error New_Face(FT_Library library, const char *pathname,
48  FT_Long face_index, FT_Face *aface);
49 extern 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);
51 extern FT_Error Done_Face(FT_Face face);
52 extern FT_UInt Get_Char_Index(FT_Face face, FT_ULong charcode);
53 extern 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