170c0d4c0d
include/freetype/internal/internal.h: fixed header inclusion macros to use direct definitions. This is the only way to do these things in a portable way :-( The rest of the code should follow shortly though everything compiles now.. * builds/compiler/intelc.mk, builds/compiler/watcom.mk, builds/win32/detect.mk: added support for the Intel C/C++ compiler, as well as _preliminary_ (read: doesn't work !!) support for Watcom. Also added a new setup target. Type "make setup list" for a list of supported command-line compilers on Win32..
93 lines
2.9 KiB
C
93 lines
2.9 KiB
C
/***************************************************************************/
|
|
/* */
|
|
/* ahglyph.h */
|
|
/* */
|
|
/* Routines used to load and analyze a given glyph before hinting */
|
|
/* (specification). */
|
|
/* */
|
|
/* Copyright 2000 Catharon Productions Inc. */
|
|
/* 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 */
|
|
/* `CatharonLicense.txt'. By continuing to use, modify, or distribute */
|
|
/* this file you indicate that you have read the license and */
|
|
/* understand and accept it fully. */
|
|
/* */
|
|
/* Note that this license is compatible with the FreeType license. */
|
|
/* */
|
|
/***************************************************************************/
|
|
|
|
|
|
#ifndef __AHGLYPH_H__
|
|
#define __AHGLYPH_H__
|
|
|
|
|
|
#include <ft2build.h>
|
|
#include FT_SOURCE_FILE(autohint,ahtypes.h)
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
typedef enum AH_UV_
|
|
{
|
|
ah_uv_fxy,
|
|
ah_uv_fyx,
|
|
ah_uv_oxy,
|
|
ah_uv_oyx,
|
|
ah_uv_ox,
|
|
ah_uv_oy,
|
|
ah_uv_yx,
|
|
ah_uv_xy /* should always be last! */
|
|
|
|
} AH_UV;
|
|
|
|
|
|
FT_LOCAL
|
|
void ah_setup_uv( AH_Outline* outline,
|
|
AH_UV source );
|
|
|
|
|
|
/* AH_Outline functions - they should be typically called in this order */
|
|
|
|
FT_LOCAL
|
|
FT_Error ah_outline_new( FT_Memory memory,
|
|
AH_Outline** aoutline );
|
|
|
|
FT_LOCAL
|
|
FT_Error ah_outline_load( AH_Outline* outline,
|
|
FT_Face face );
|
|
|
|
FT_LOCAL
|
|
void ah_outline_compute_segments( AH_Outline* outline );
|
|
|
|
FT_LOCAL
|
|
void ah_outline_link_segments( AH_Outline* outline );
|
|
|
|
FT_LOCAL
|
|
void ah_outline_detect_features( AH_Outline* outline );
|
|
|
|
FT_LOCAL
|
|
void ah_outline_compute_blue_edges( AH_Outline* outline,
|
|
AH_Face_Globals* globals );
|
|
|
|
FT_LOCAL
|
|
void ah_outline_scale_blue_edges( AH_Outline* outline,
|
|
AH_Face_Globals* globals );
|
|
|
|
FT_LOCAL
|
|
void ah_outline_save( AH_Outline* outline, AH_Loader* loader );
|
|
|
|
FT_LOCAL
|
|
void ah_outline_done( AH_Outline* outline );
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
#endif /* __AHGLYPH_H__ */
|
|
|
|
|
|
/* END */
|