ahglyph.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /***************************************************************************/
  2. /* */
  3. /* ahglyph.h */
  4. /* */
  5. /* Routines used to load and analyze a given glyph before hinting */
  6. /* (specification). */
  7. /* */
  8. /* Copyright 2000-2001, 2002 Catharon Productions Inc. */
  9. /* Author: David Turner */
  10. /* */
  11. /* This file is part of the Catharon Typography Project and shall only */
  12. /* be used, modified, and distributed under the terms of the Catharon */
  13. /* Open Source License that should come with this file under the name */
  14. /* `CatharonLicense.txt'. By continuing to use, modify, or distribute */
  15. /* this file you indicate that you have read the license and */
  16. /* understand and accept it fully. */
  17. /* */
  18. /* Note that this license is compatible with the FreeType license. */
  19. /* */
  20. /***************************************************************************/
  21. #ifndef __AHGLYPH_H__
  22. #define __AHGLYPH_H__
  23. #include <ft2build.h>
  24. #include "ahtypes.h"
  25. FT_BEGIN_HEADER
  26. typedef enum AH_UV_
  27. {
  28. AH_UV_FXY,
  29. AH_UV_FYX,
  30. AH_UV_OXY,
  31. AH_UV_OYX,
  32. AH_UV_OX,
  33. AH_UV_OY,
  34. AH_UV_YX,
  35. AH_UV_XY /* should always be last! */
  36. } AH_UV;
  37. FT_LOCAL( void )
  38. ah_setup_uv( AH_Outline outline,
  39. AH_UV source );
  40. /* AH_OutlineRec functions - they should be typically called in this order */
  41. FT_LOCAL( FT_Error )
  42. ah_outline_new( FT_Memory memory,
  43. AH_Outline* aoutline );
  44. FT_LOCAL( FT_Error )
  45. ah_outline_load( AH_Outline outline,
  46. FT_Face face );
  47. FT_LOCAL( void )
  48. ah_outline_compute_segments( AH_Outline outline );
  49. FT_LOCAL( void )
  50. ah_outline_link_segments( AH_Outline outline );
  51. FT_LOCAL( void )
  52. ah_outline_detect_features( AH_Outline outline );
  53. FT_LOCAL( void )
  54. ah_outline_compute_blue_edges( AH_Outline outline,
  55. AH_Face_Globals globals );
  56. FT_LOCAL( void )
  57. ah_outline_scale_blue_edges( AH_Outline outline,
  58. AH_Face_Globals globals );
  59. FT_LOCAL( void )
  60. ah_outline_save( AH_Outline outline,
  61. AH_Loader loader );
  62. FT_LOCAL( void )
  63. ah_outline_done( AH_Outline outline );
  64. FT_END_HEADER
  65. #endif /* __AHGLYPH_H__ */
  66. /* END */