Index: src/autofit/afloader.h |
diff --git a/src/autofit/afloader.h b/src/autofit/afloader.h |
index eec0e9271f0f9e8a4053b2f138bff7640a645c9b..1f34d17cce06a757f69f371d90bd7723a57a435e 100644 |
--- a/src/autofit/afloader.h |
+++ b/src/autofit/afloader.h |
@@ -25,11 +25,24 @@ |
FT_BEGIN_HEADER |
- typedef struct AF_LoaderRec_ |
+ typedef struct AF_ModuleRec_* AF_Module; |
+ |
+ /* |
+ * The autofitter module's (global) data structure to communicate with |
+ * actual fonts. If necessary, `local' data like the current face, the |
+ * current face's auto-hint data, or the current glyph's parameters |
+ * relevant to auto-hinting are `swapped in'. Cf. functions like |
+ * `af_loader_reset' and `af_loader_load_g'. |
+ */ |
+ |
+ typedef struct AF_LoaderRec_ |
{ |
- FT_Face face; /* current face */ |
- AF_FaceGlobals globals; /* current face globals */ |
- FT_GlyphLoader gloader; /* glyph loader */ |
+ /* current face data */ |
+ FT_Face face; |
+ AF_FaceGlobals globals; |
+ |
+ /* current glyph data */ |
+ FT_GlyphLoader gloader; |
AF_GlyphHintsRec hints; |
AF_ScriptMetrics metrics; |
FT_Bool transformed; |
@@ -43,21 +56,20 @@ FT_BEGIN_HEADER |
FT_LOCAL( FT_Error ) |
- af_loader_init( AF_Loader loader, |
- FT_Memory memory ); |
+ af_loader_init( AF_Module module ); |
FT_LOCAL( FT_Error ) |
- af_loader_reset( AF_Loader loader, |
+ af_loader_reset( AF_Module module, |
FT_Face face ); |
FT_LOCAL( void ) |
- af_loader_done( AF_Loader loader ); |
+ af_loader_done( AF_Module module ); |
FT_LOCAL( FT_Error ) |
- af_loader_load_glyph( AF_Loader loader, |
+ af_loader_load_glyph( AF_Module module, |
FT_Face face, |
FT_UInt gindex, |
FT_Int32 load_flags ); |