1/***************************************************************************/ 2/* */ 3/* afmodule.h */ 4/* */ 5/* Auto-fitter module implementation (specification). */ 6/* */ 7/* Copyright 2003-2005, 2009, 2012, 2013 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 19#ifndef __AFMODULE_H__ 20#define __AFMODULE_H__ 21 22#include <ft2build.h> 23#include FT_INTERNAL_OBJECTS_H 24#include FT_MODULE_H 25 26#include "afloader.h" 27 28 29FT_BEGIN_HEADER 30 31 32 /* 33 * This is the `extended' FT_Module structure which holds the 34 * autofitter's global data. Right before hinting a glyph, the data 35 * specific to the glyph's face (blue zones, stem widths, etc.) are 36 * loaded into `loader' (see function `af_loader_reset'). 37 */ 38 39 typedef struct AF_ModuleRec_ 40 { 41 FT_ModuleRec root; 42 43 FT_UInt fallback_style; 44 FT_UInt default_script; 45 46 AF_LoaderRec loader[1]; 47 48 } AF_ModuleRec; 49 50 51FT_DECLARE_MODULE(autofit_module_class) 52 53 54FT_END_HEADER 55 56#endif /* __AFMODULE_H__ */ 57 58 59/* END */ 60