2000-07-19 22:02:14 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* ahglyph.h */
|
|
|
|
/* */
|
2000-07-24 08:01:34 +02:00
|
|
|
/* Routines used to load and analyze a given glyph before hinting */
|
|
|
|
/* (specification). */
|
2000-07-19 22:02:14 +02:00
|
|
|
/* */
|
2000-07-24 08:01:34 +02:00
|
|
|
/* Copyright 2000 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-24 08:01:34 +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-24 08:01:34 +02:00
|
|
|
/* Note that this license is compatible with the FreeType license. */
|
2000-07-19 22:02:14 +02:00
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
2000-07-24 08:01:34 +02:00
|
|
|
|
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#ifndef __AHGLYPH_H__
|
|
|
|
#define __AHGLYPH_H__
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
|
|
|
#include <ft2build.h>
|
* include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT):
Removed. ANSI C doesn't (explicitly) allow macro expansion in
arguments using `##'.
(FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
names directly. Make them configurable. Use `##' to strip leading
and trailing spaces from arguments.
* builds/unix/ft2unix.h: Adapted.
* src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
ft_close_stream): Use FT_CALLBACK_DEF.
* builds/unix/ftsystem.c: Use new header scheme.
(FT_Done_Memory): Use free() from FT_Memory structure.
* src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
* include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
2000-12-12 23:28:12 +01:00
|
|
|
#include FT_SOURCE_FILE( autohint, ahtypes.h )
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-08-01 15:17:04 +02:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_BEGIN_HEADER
|
2000-08-01 15:17:04 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-07-24 08:01:34 +02:00
|
|
|
typedef enum AH_UV_
|
2000-07-19 22:02:14 +02:00
|
|
|
{
|
|
|
|
ah_uv_fxy,
|
|
|
|
ah_uv_fyx,
|
|
|
|
ah_uv_oxy,
|
|
|
|
ah_uv_oyx,
|
|
|
|
ah_uv_ox,
|
|
|
|
ah_uv_oy,
|
|
|
|
ah_uv_yx,
|
2000-07-24 08:01:34 +02:00
|
|
|
ah_uv_xy /* should always be last! */
|
2000-07-19 22:02:14 +02:00
|
|
|
|
|
|
|
} AH_UV;
|
|
|
|
|
2000-07-24 08:01:34 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-19 22:02:14 +02:00
|
|
|
void ah_setup_uv( AH_Outline* outline,
|
|
|
|
AH_UV source );
|
|
|
|
|
|
|
|
|
|
|
|
/* AH_Outline functions - they should be typically called in this order */
|
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
FT_Error ah_outline_new( FT_Memory memory,
|
|
|
|
AH_Outline** aoutline );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
FT_Error ah_outline_load( AH_Outline* outline,
|
|
|
|
FT_Face face );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
void ah_outline_compute_segments( AH_Outline* outline );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
void ah_outline_link_segments( AH_Outline* outline );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
void ah_outline_detect_features( AH_Outline* outline );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
void ah_outline_compute_blue_edges( AH_Outline* outline,
|
|
|
|
AH_Face_Globals* globals );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
void ah_outline_scale_blue_edges( AH_Outline* outline,
|
|
|
|
AH_Face_Globals* globals );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
void ah_outline_save( AH_Outline* outline, AH_Loader* loader );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-07-24 08:01:34 +02:00
|
|
|
void ah_outline_done( AH_Outline* outline );
|
|
|
|
|
2000-12-08 17:17:16 +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 /* __AHGLYPH_H__ */
|
2000-07-19 22:02:14 +02:00
|
|
|
|
|
|
|
|
2000-07-24 08:01:34 +02:00
|
|
|
/* END */
|