[autofitter] Add some comments.

This commit is contained in:
Werner Lemberg 2012-09-11 19:45:36 +02:00
parent 2be60cfe7e
commit 44481daf43
2 changed files with 21 additions and 4 deletions

View File

@ -25,11 +25,21 @@
FT_BEGIN_HEADER
typedef struct AF_LoaderRec_
/*
* The autofitter module's global data structure. 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;

View File

@ -125,6 +125,13 @@
}
/*
* This is the `extended' FT_Module structure which holds the
* autofitter's global data (in `loader'). Right before hinting a glyph,
* the data specific to the glyph's face (blue zones, stem widths, etc.)
* are `swapped in' in function `af_loader_reset'.
*/
typedef struct FT_AutofitterRec_
{
FT_ModuleRec root;