Path: blob/master/thirdparty/freetype/src/autofit/afloader.h
10933 views
/****************************************************************************1*2* afloader.h3*4* Auto-fitter glyph loading routines (specification).5*6* Copyright (C) 2003-2024 by7* David Turner, Robert Wilhelm, and Werner Lemberg.8*9* This file is part of the FreeType project, and may only be used,10* modified, and distributed under the terms of the FreeType project11* license, LICENSE.TXT. By continuing to use, modify, or distribute12* this file you indicate that you have read the license and13* understand and accept it fully.14*15*/161718#ifndef AFLOADER_H_19#define AFLOADER_H_2021#include "afhints.h"22#include "afmodule.h"23#include "afglobal.h"242526FT_BEGIN_HEADER2728/*29* The autofitter module's (global) data structure to communicate with30* actual fonts. If necessary, `local' data like the current face, the31* current face's auto-hint data, or the current glyph's parameters32* relevant to auto-hinting are `swapped in'. Cf. functions like33* `af_loader_reset' and `af_loader_load_g'.34*/3536typedef struct AF_LoaderRec_37{38/* current face data */39FT_Face face;40AF_FaceGlobals globals;4142/* current glyph data */43AF_GlyphHints hints;44AF_StyleMetrics metrics;45FT_Bool transformed;46FT_Matrix trans_matrix;47FT_Vector trans_delta;48FT_Vector pp1;49FT_Vector pp2;50/* we don't handle vertical phantom points */5152} AF_LoaderRec, *AF_Loader;535455FT_LOCAL( void )56af_loader_init( AF_Loader loader,57AF_GlyphHints hints );585960FT_LOCAL( FT_Error )61af_loader_reset( AF_Loader loader,62AF_Module module,63FT_Face face );646566FT_LOCAL( void )67af_loader_done( AF_Loader loader );686970FT_LOCAL( FT_Error )71af_loader_load_glyph( AF_Loader loader,72AF_Module module,73FT_Face face,74FT_UInt gindex,75FT_Int32 load_flags );7677FT_LOCAL( FT_Fixed )78af_loader_compute_darkening( AF_Loader loader,79FT_Face face,80FT_Pos standard_width );8182/* */838485FT_END_HEADER8687#endif /* AFLOADER_H_ */888990/* END */919293