ahhint.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /***************************************************************************/
  2. /* */
  3. /* ahhint.h */
  4. /* */
  5. /* Glyph hinter (declaration). */
  6. /* */
  7. /* Copyright 2000-2001, 2002 Catharon Productions Inc. */
  8. /* Author: David Turner */
  9. /* */
  10. /* This file is part of the Catharon Typography Project and shall only */
  11. /* be used, modified, and distributed under the terms of the Catharon */
  12. /* Open Source License that should come with this file under the name */
  13. /* `CatharonLicense.txt'. By continuing to use, modify, or distribute */
  14. /* this file you indicate that you have read the license and */
  15. /* understand and accept it fully. */
  16. /* */
  17. /* Note that this license is compatible with the FreeType license. */
  18. /* */
  19. /***************************************************************************/
  20. #ifndef __AHHINT_H__
  21. #define __AHHINT_H__
  22. #include <ft2build.h>
  23. #include "ahglobal.h"
  24. FT_BEGIN_HEADER
  25. #define AH_HINT_DEFAULT 0
  26. #define AH_HINT_NO_ALIGNMENT 1
  27. #define AH_HINT_NO_HORZ_EDGES 0x200000L /* temporary hack */
  28. #define AH_HINT_NO_VERT_EDGES 0x400000L /* temporary hack */
  29. /* create a new empty hinter object */
  30. FT_LOCAL( FT_Error )
  31. ah_hinter_new( FT_Library library,
  32. AH_Hinter* ahinter );
  33. /* Load a hinted glyph in the hinter */
  34. FT_LOCAL( FT_Error )
  35. ah_hinter_load_glyph( AH_Hinter hinter,
  36. FT_GlyphSlot slot,
  37. FT_Size size,
  38. FT_UInt glyph_index,
  39. FT_Int32 load_flags );
  40. /* finalize a hinter object */
  41. FT_LOCAL( void )
  42. ah_hinter_done( AH_Hinter hinter );
  43. FT_LOCAL( void )
  44. ah_hinter_done_face_globals( AH_Face_Globals globals );
  45. FT_LOCAL( void )
  46. ah_hinter_get_global_hints( AH_Hinter hinter,
  47. FT_Face face,
  48. void** global_hints,
  49. long* global_len );
  50. FT_LOCAL( void )
  51. ah_hinter_done_global_hints( AH_Hinter hinter,
  52. void* global_hints );
  53. FT_END_HEADER
  54. #endif /* __AHHINT_H__ */
  55. /* END */