2017-09-25 06:33:28 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* ftt1drv.h */
|
|
|
|
/* */
|
|
|
|
/* FreeType API for controlling the Type 1 driver (specification only). */
|
|
|
|
/* */
|
2017-09-26 12:53:41 +02:00
|
|
|
/* Copyright 2017 by */
|
2017-09-25 06:33:28 +02:00
|
|
|
/* 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 FTT1DRV_H_
|
|
|
|
#define FTT1DRV_H_
|
|
|
|
|
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_FREETYPE_H
|
2017-12-06 23:15:54 +01:00
|
|
|
#include FT_PARAMETER_TAGS_H
|
2017-09-25 06:33:28 +02:00
|
|
|
|
|
|
|
#ifdef FREETYPE_H
|
|
|
|
#error "freetype.h of FreeType 1 has been loaded!"
|
|
|
|
#error "Please fix the directory search order for header files"
|
|
|
|
#error "so that freetype.h of FreeType 2 is found first."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
*
|
|
|
|
* @property:
|
|
|
|
* hinting-engine[type1]
|
|
|
|
*
|
|
|
|
* @description:
|
|
|
|
* Thanks to Adobe, which contributed a new hinting (and parsing)
|
|
|
|
* engine, an application can select between `freetype' and `adobe' if
|
|
|
|
* compiled with T1_CONFIG_OPTION_OLD_ENGINE. If this configuration
|
|
|
|
* macro isn't defined, `hinting-engine' does nothing.
|
|
|
|
*
|
|
|
|
* The default engine is `freetype' if T1_CONFIG_OPTION_OLD_ENGINE is
|
|
|
|
* defined, and `adobe' otherwise.
|
|
|
|
*
|
|
|
|
* The following example code demonstrates how to select Adobe's hinting
|
|
|
|
* engine (omitting the error handling).
|
|
|
|
*
|
|
|
|
* {
|
|
|
|
* FT_Library library;
|
|
|
|
* FT_UInt hinting_engine = FT_T1_HINTING_ADOBE;
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* FT_Init_FreeType( &library );
|
|
|
|
*
|
|
|
|
* FT_Property_Set( library, "type1",
|
|
|
|
* "hinting-engine", &hinting_engine );
|
|
|
|
* }
|
|
|
|
*
|
|
|
|
* @note:
|
|
|
|
* This property can be used with @FT_Property_Get also.
|
|
|
|
*
|
|
|
|
* This property can be set via the `FREETYPE_PROPERTIES' environment
|
|
|
|
* variable (using values `adobe' or `freetype').
|
2017-09-26 12:53:41 +02:00
|
|
|
*
|
|
|
|
* @since:
|
|
|
|
* 2.8.2
|
|
|
|
*
|
2017-09-25 06:33:28 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
*
|
|
|
|
* @enum:
|
|
|
|
* FT_T1_HINTING_XXX
|
|
|
|
*
|
|
|
|
* @description:
|
|
|
|
* A list of constants used for the @hinting-engine[type1] property to
|
|
|
|
* select the hinting engine for Type 1 fonts.
|
|
|
|
*
|
|
|
|
* @values:
|
|
|
|
* FT_T1_HINTING_FREETYPE ::
|
|
|
|
* Use the old FreeType hinting engine.
|
|
|
|
*
|
|
|
|
* FT_T1_HINTING_ADOBE ::
|
|
|
|
* Use the hinting engine contributed by Adobe.
|
|
|
|
*
|
2017-09-26 12:53:41 +02:00
|
|
|
* @since:
|
|
|
|
* 2.8.2
|
|
|
|
*
|
2017-09-25 06:33:28 +02:00
|
|
|
*/
|
|
|
|
#define FT_T1_HINTING_FREETYPE 0
|
|
|
|
#define FT_T1_HINTING_ADOBE 1
|
|
|
|
|
2017-09-26 12:53:41 +02:00
|
|
|
|
2017-09-25 06:33:28 +02:00
|
|
|
/* */
|
|
|
|
|
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FTT1DRV_H_ */
|
|
|
|
|
|
|
|
|
|
|
|
/* END */
|