afmodule.h (1349B)
1 /**************************************************************************** 2 * 3 * afmodule.h 4 * 5 * Auto-fitter module implementation (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 19 #ifndef AFMODULE_H_ 20 #define AFMODULE_H_ 21 22 #include <freetype/internal/ftobjs.h> 23 #include <freetype/ftmodapi.h> 24 25 #include "ft-hb.h" 26 27 FT_BEGIN_HEADER 28 29 30 /* 31 * This is the `extended' FT_Module structure that holds the 32 * autofitter's global data. 33 */ 34 35 typedef struct AF_ModuleRec_ 36 { 37 FT_ModuleRec root; 38 39 FT_UInt fallback_style; 40 AF_Script default_script; 41 FT_Bool no_stem_darkening; 42 FT_Int darken_params[8]; 43 44 #if defined( FT_CONFIG_OPTION_USE_HARFBUZZ ) && \ 45 defined( FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC ) 46 ft_hb_funcs_t* hb_funcs; 47 #endif 48 49 } AF_ModuleRec, *AF_Module; 50 51 52 FT_DECLARE_AUTOHINTER_INTERFACE( af_autofitter_interface ) 53 FT_DECLARE_MODULE( autofit_module_class ) 54 55 56 FT_END_HEADER 57 58 #endif /* AFMODULE_H_ */ 59 60 61 /* END */