/src/freetype/src/autofit/afloader.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 73 lines · 33 code · 21 blank · 19 comment · 0 complexity · ffb5879f73932e33835d6e31e014cbcd MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* afloader.h */
  4. /* */
  5. /* Auto-fitter glyph loading routines (specification). */
  6. /* */
  7. /* Copyright 2003-2005, 2011-2012 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. #ifndef __AFLOADER_H__
  18. #define __AFLOADER_H__
  19. #include "afhints.h"
  20. #include "afglobal.h"
  21. FT_BEGIN_HEADER
  22. typedef struct AF_LoaderRec_
  23. {
  24. FT_Face face; /* current face */
  25. AF_FaceGlobals globals; /* current face globals */
  26. FT_GlyphLoader gloader; /* glyph loader */
  27. AF_GlyphHintsRec hints;
  28. AF_ScriptMetrics metrics;
  29. FT_Bool transformed;
  30. FT_Matrix trans_matrix;
  31. FT_Vector trans_delta;
  32. FT_Vector pp1;
  33. FT_Vector pp2;
  34. /* we don't handle vertical phantom points */
  35. } AF_LoaderRec, *AF_Loader;
  36. FT_LOCAL( FT_Error )
  37. af_loader_init( AF_Loader loader,
  38. FT_Memory memory );
  39. FT_LOCAL( FT_Error )
  40. af_loader_reset( AF_Loader loader,
  41. FT_Face face );
  42. FT_LOCAL( void )
  43. af_loader_done( AF_Loader loader );
  44. FT_LOCAL( FT_Error )
  45. af_loader_load_glyph( AF_Loader loader,
  46. FT_Face face,
  47. FT_UInt gindex,
  48. FT_Int32 load_flags );
  49. /* */
  50. FT_END_HEADER
  51. #endif /* __AFLOADER_H__ */
  52. /* END */