sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
afloader.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * afloader.h
4 *
5 * Auto-fitter glyph loading routines (specification).
6 *
7 * Copyright (C) 2003-2025 by
8 * David Turner, Robert Wilhelm, and Werner Lemberg.
9 *
10 * This file is part of the FreeType project, and may only be used,
11 * modified, and distributed under the terms of the FreeType project
12 * license, LICENSE.TXT. By continuing to use, modify, or distribute
13 * this file you indicate that you have read the license and
14 * understand and accept it fully.
15 *
16 */
17
18
23#ifndef AFLOADER_H_
24#define AFLOADER_H_
25
26#include "afhints.h"
27#include "afmodule.h"
28#include "afglobal.h"
29
30
31FT_BEGIN_HEADER
32
33 /*
34 * The autofitter module's (global) data structure to communicate with
35 * actual fonts. If necessary, `local' data like the current face, the
36 * current face's auto-hint data, or the current glyph's parameters
37 * relevant to auto-hinting are `swapped in'. Cf. functions like
38 * `af_loader_reset' and `af_loader_load_g'.
39 */
40
41 typedef struct AF_LoaderRec_
42 {
43 /* current face data */
44 FT_Face face;
45 AF_FaceGlobals globals;
46
47 /* current glyph data */
48 AF_GlyphHints hints;
49 AF_StyleMetrics metrics;
50 FT_Bool transformed;
51 FT_Matrix trans_matrix;
52 FT_Vector trans_delta;
53 FT_Vector pp1;
54 FT_Vector pp2;
55 /* we don't handle vertical phantom points */
56
57 } AF_LoaderRec, *AF_Loader;
58
59
60 FT_LOCAL( void )
61 af_loader_init( AF_Loader loader,
62 AF_GlyphHints hints );
63
64
65 FT_LOCAL( FT_Error )
66 af_loader_reset( AF_Loader loader,
67 AF_Module module,
68 FT_Face face );
69
70
71 FT_LOCAL( void )
72 af_loader_done( AF_Loader loader );
73
74
75 FT_LOCAL( FT_Error )
76 af_loader_load_glyph( AF_Loader loader,
77 AF_Module module,
78 FT_Face face,
79 FT_UInt gindex,
80 FT_Int32 load_flags );
81
82 FT_LOCAL( FT_Fixed )
83 af_loader_compute_darkening( AF_Loader loader,
84 FT_Face face,
85 FT_Pos standard_width );
86
87/* */
88
89
90FT_END_HEADER
91
92#endif /* AFLOADER_H_ */
93
94
95/* END */