2001-12-05 02:22:05 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* pshalgo.h */
|
|
|
|
/* */
|
|
|
|
/* This header file defines the used hinting algorithm. */
|
|
|
|
/* */
|
|
|
|
/* Copyright 2001 by */
|
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
|
|
|
/* This file is part of the FreeType project, and may only be used */
|
|
|
|
/* modified and distributed under the terms of the FreeType project */
|
|
|
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
|
|
|
/* this file you indicate that you have read the license and */
|
|
|
|
/* understand and accept it fully. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __PSHALGO_H__
|
|
|
|
#define __PSHALGO_H__
|
2001-10-18 13:38:43 +02:00
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
|
|
/* define to choose hinting algorithm */
|
2002-07-03 23:00:26 +02:00
|
|
|
#define PSH_ALGORITHM_3
|
2001-10-18 13:38:43 +02:00
|
|
|
|
2002-07-03 23:00:26 +02:00
|
|
|
#if defined(PSH_ALGORITHM_1)
|
2001-12-05 02:22:05 +01:00
|
|
|
|
2002-07-03 23:00:26 +02:00
|
|
|
# include "pshalgo1.h"
|
|
|
|
# define PS_HINTS_APPLY_FUNC ps1_hints_apply
|
|
|
|
|
|
|
|
#elif defined(PSH_ALGORITHM_2)
|
|
|
|
|
|
|
|
# include "pshalgo2.h"
|
|
|
|
# define PS_HINTS_APPLY_FUNC ps2_hints_apply
|
|
|
|
|
|
|
|
#elif defined(PSH_ALGORITHM_3)
|
|
|
|
|
|
|
|
# include "pshalgo3.h"
|
|
|
|
# define PS_HINTS_APPLY_FUNC ps3_hints_apply
|
2001-12-05 02:22:05 +01:00
|
|
|
|
2001-10-18 13:38:43 +02:00
|
|
|
#else
|
2001-12-05 02:22:05 +01:00
|
|
|
|
2002-07-03 23:00:26 +02:00
|
|
|
# error "invalid Postscript Hinter algorithm selection"
|
2001-12-05 02:22:05 +01:00
|
|
|
|
2001-10-18 13:38:43 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
2001-12-05 02:22:05 +01:00
|
|
|
#endif /* __PSHALGO_H__ */
|
|
|
|
|
|
|
|
|
|
|
|
/* END */
|