2000-07-19 22:02:14 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* ahhint.h */
|
|
|
|
/* */
|
2000-07-26 16:11:15 +02:00
|
|
|
/* Glyph hinter (declaration). */
|
2000-07-19 22:02:14 +02:00
|
|
|
/* */
|
2001-06-28 19:49:10 +02:00
|
|
|
/* Copyright 2000-2001 Catharon Productions Inc. */
|
2000-07-19 22:02:14 +02:00
|
|
|
/* Author: David Turner */
|
|
|
|
/* */
|
|
|
|
/* This file is part of the Catharon Typography Project and shall only */
|
|
|
|
/* be used, modified, and distributed under the terms of the Catharon */
|
|
|
|
/* Open Source License that should come with this file under the name */
|
2000-07-26 16:11:15 +02:00
|
|
|
/* `CatharonLicense.txt'. By continuing to use, modify, or distribute */
|
2000-07-19 22:02:14 +02:00
|
|
|
/* this file you indicate that you have read the license and */
|
|
|
|
/* understand and accept it fully. */
|
|
|
|
/* */
|
2000-07-26 16:11:15 +02:00
|
|
|
/* Note that this license is compatible with the FreeType license. */
|
2000-07-19 22:02:14 +02:00
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
2000-07-26 16:11:15 +02:00
|
|
|
|
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#ifndef __AHHINT_H__
|
|
|
|
#define __AHHINT_H__
|
2000-07-26 16:11:15 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
|
|
|
#include <ft2build.h>
|
2001-03-20 12:14:24 +01:00
|
|
|
#include "ahglobal.h"
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_BEGIN_HEADER
|
2000-08-01 15:17:04 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
|
2000-07-26 16:11:15 +02:00
|
|
|
#define AH_HINT_DEFAULT 0
|
|
|
|
#define AH_HINT_NO_ALIGNMENT 1
|
|
|
|
#define AH_HINT_NO_HORZ_EDGES 0x20000L
|
|
|
|
#define AH_HINT_NO_VERT_EDGES 0x40000L
|
2000-07-19 22:02:14 +02:00
|
|
|
|
|
|
|
|
2000-07-26 16:11:15 +02:00
|
|
|
/* create a new empty hinter object */
|
2001-06-27 18:18:10 +02:00
|
|
|
FT_LOCAL FT_Error
|
|
|
|
ah_hinter_new( FT_Library library,
|
|
|
|
AH_Hinter** ahinter );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-07-26 16:11:15 +02:00
|
|
|
/* Load a hinted glyph in the hinter */
|
2001-06-27 18:18:10 +02:00
|
|
|
FT_LOCAL FT_Error
|
|
|
|
ah_hinter_load_glyph( AH_Hinter* hinter,
|
|
|
|
FT_GlyphSlot slot,
|
|
|
|
FT_Size size,
|
|
|
|
FT_UInt glyph_index,
|
|
|
|
FT_Int load_flags );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-07-26 16:11:15 +02:00
|
|
|
/* finalize a hinter object */
|
2001-06-27 18:18:10 +02:00
|
|
|
FT_LOCAL void
|
|
|
|
ah_hinter_done( AH_Hinter* hinter );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2001-06-27 18:18:10 +02:00
|
|
|
FT_LOCAL void
|
|
|
|
ah_hinter_done_face_globals( AH_Face_Globals* globals );
|
2000-07-26 16:11:15 +02:00
|
|
|
|
2001-06-27 18:18:10 +02:00
|
|
|
FT_LOCAL void
|
|
|
|
ah_hinter_get_global_hints( AH_Hinter* hinter,
|
|
|
|
FT_Face face,
|
|
|
|
void** global_hints,
|
|
|
|
long* global_len );
|
2000-07-26 16:11:15 +02:00
|
|
|
|
2001-06-27 18:18:10 +02:00
|
|
|
FT_LOCAL void
|
|
|
|
ah_hinter_done_global_hints( AH_Hinter* hinter,
|
|
|
|
void* global_hints );
|
2000-07-26 16:11:15 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_END_HEADER
|
2000-08-01 15:17:04 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#endif /* __AHHINT_H__ */
|
2000-07-19 22:02:14 +02:00
|
|
|
|
|
|
|
|
2000-07-26 16:11:15 +02:00
|
|
|
/* END */
|