2005-03-03 18:09:08 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* afmodule.h */
|
|
|
|
/* */
|
|
|
|
/* Auto-fitter module implementation (specification). */
|
|
|
|
/* */
|
|
|
|
/* Copyright 2003, 2004, 2005 by */
|
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
|
|
/* modified, and distributed under the terms of the FreeType project */
|
|
|
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
|
|
|
/* this file you indicate that you have read the license and */
|
|
|
|
/* understand and accept it fully. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
2004-02-03 22:34:29 +01:00
|
|
|
#ifndef __AFMODULE_H__
|
|
|
|
#define __AFMODULE_H__
|
|
|
|
|
|
|
|
#include <ft2build.h>
|
2009-09-25 16:57:30 +02:00
|
|
|
#include FT_INTERNAL_OBJECTS_H
|
2004-02-03 22:34:29 +01:00
|
|
|
#include FT_MODULE_H
|
|
|
|
|
2012-09-14 12:26:57 +02:00
|
|
|
#include "afloader.h"
|
|
|
|
|
2004-02-03 22:34:29 +01:00
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
2012-09-14 12:26:57 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This is the `extended' FT_Module structure which holds the
|
|
|
|
* autofitter's global data. Right before hinting a glyph, the data
|
|
|
|
* specific to the glyph's face (blue zones, stem widths, etc.) are
|
|
|
|
* loaded into `loader' (see function `af_loader_reset').
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct AF_ModuleRec_
|
|
|
|
{
|
|
|
|
FT_ModuleRec root;
|
|
|
|
|
2012-09-15 18:26:28 +02:00
|
|
|
FT_UInt fallback_script;
|
2012-09-15 10:33:43 +02:00
|
|
|
|
2012-09-14 12:26:57 +02:00
|
|
|
AF_LoaderRec loader[1];
|
|
|
|
|
|
|
|
} AF_ModuleRec;
|
|
|
|
|
|
|
|
|
2009-04-05 17:23:38 +02:00
|
|
|
FT_DECLARE_MODULE(autofit_module_class)
|
2004-02-03 22:34:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
|
|
|
#endif /* __AFMODULE_H__ */
|
2005-03-03 18:09:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|