ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ahglyph.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 /***************************************************************************/
23 /* */
24 /* ahglyph.h */
25 /* */
26 /* Routines used to load and analyze a given glyph before hinting */
27 /* (specification). */
28 /* */
29 /* Copyright 2000-2001, 2002 Catharon Productions Inc. */
30 /* Author: David Turner */
31 /* */
32 /* This file is part of the Catharon Typography Project and shall only */
33 /* be used, modified, and distributed under the terms of the Catharon */
34 /* Open Source License that should come with this file under the name */
35 /* `CatharonLicense.txt'. By continuing to use, modify, or distribute */
36 /* this file you indicate that you have read the license and */
37 /* understand and accept it fully. */
38 /* */
39 /* Note that this license is compatible with the FreeType license. */
40 /* */
41 /***************************************************************************/
42 
43 
44 #ifndef AGS_LIB_FREETYPE_AHGLYPH_H
45 #define AGS_LIB_FREETYPE_AHGLYPH_H
46 
47 
48 #include <ft2build.h>
49 #include "ags/lib/freetype-2.1.3/autohint/ahtypes.h"
50 
51 namespace AGS3 {
52 namespace FreeType213 {
53 
54 
55 typedef enum AH_UV_ {
56  AH_UV_FXY,
57  AH_UV_FYX,
58  AH_UV_OXY,
59  AH_UV_OYX,
60  AH_UV_OX,
61  AH_UV_OY,
62  AH_UV_YX,
63  AH_UV_XY /* should always be last! */
64 } AH_UV;
65 
66 
67 void ah_setup_uv(AH_Outline outline, AH_UV source);
68 
69 /* AH_OutlineRec functions - they should be typically called in this order */
70 FT_Error ah_outline_new(FT_Memory memory, AH_Outline *aoutline);
71 FT_Error ah_outline_load(AH_Outline outline, FT_Face face);
72 void ah_outline_compute_segments(AH_Outline outline);
73 void ah_outline_link_segments(AH_Outline outline);
74 void ah_outline_detect_features(AH_Outline outline);
75 void ah_outline_compute_blue_edges(AH_Outline outline, AH_Face_Globals globals);
76 void ah_outline_scale_blue_edges(AH_Outline outline, AH_Face_Globals globals);
77 void ah_outline_save(AH_Outline outline, AH_Loader loader);
78 void ah_outline_done(AH_Outline outline);
79 
80 
81 } // End of namespace FreeType213
82 } // End of namespace AGS3
83 
84 #endif /* AGS_LIB_FREETYPE_AHGLYPH_H */
Definition: ags.h:40