pshalgo.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /***************************************************************************/
  2. /* */
  3. /* pshalgo.h */
  4. /* */
  5. /* This header file defines the used hinting algorithm. */
  6. /* */
  7. /* Copyright 2001 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 __PSHALGO_H__
  18. #define __PSHALGO_H__
  19. FT_BEGIN_HEADER
  20. /* define to choose hinting algorithm */
  21. #define PSH_ALGORITHM_3
  22. #if defined(PSH_ALGORITHM_1)
  23. # include "pshalgo1.h"
  24. # define PS_HINTS_APPLY_FUNC ps1_hints_apply
  25. #elif defined(PSH_ALGORITHM_2)
  26. # include "pshalgo2.h"
  27. # define PS_HINTS_APPLY_FUNC ps2_hints_apply
  28. #elif defined(PSH_ALGORITHM_3)
  29. # include "pshalgo3.h"
  30. # define PS_HINTS_APPLY_FUNC ps3_hints_apply
  31. #else
  32. # error "invalid Postscript Hinter algorithm selection"
  33. #endif
  34. FT_END_HEADER
  35. #endif /* __PSHALGO_H__ */
  36. /* END */