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
|
|
|
/* */
|
2002-03-30 14:16:35 +01:00
|
|
|
/* Copyright 2000-2001, 2002 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>
|
2001-03-20 12:14:24 +01:00
|
|
|
#include "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
|
|
|
{
|
* massive re-formatting changes to many, many source files. I don't
want to list them all here. The operations performed were all logical
transformations of the sources:
- trying to convert all enums and constants to CAPITALIZED_STYLE, with
#define definitions like
#define my_old_constants MY_NEW_CONSTANT
- big, big update of the documentation comments
* include/freetype/freetype.h, src/base/ftobjs.c, src/smooth/ftsmooth.c,
include/freetype/ftimage.h: adding support for LCD-optimized rendering
though the new constants/enums:
FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V
FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V
this is still work in progress, don't expect everything to work correctly
though most of the features have been implemented.
* adding new FT_LOAD_XXX flags, used to specify both hinting and rendering
targets:
FT_LOAD_TARGET_NORMAL :: anti-aliased hinting & rendering
FT_LOAD_TARGET_MONO :: monochrome bitmaps
FT_LOAD_TARGET_LCD :: horizontal RGB/BGR decimated hinting & rendering
FT_LOAD_TARGET_LCD_V :: vertical RGB/BGR decimated hinting & rendering
note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
behaviour of the font engine is _unchanged_.
2002-08-27 22:20:29 +02:00
|
|
|
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! */
|
2000-07-19 22:02:14 +02:00
|
|
|
|
|
|
|
} AH_UV;
|
|
|
|
|
2000-07-24 08:01:34 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_setup_uv( AH_Outline outline,
|
|
|
|
AH_UV source );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
|
|
|
|
* massive re-formatting changes to many, many source files. I don't
want to list them all here. The operations performed were all logical
transformations of the sources:
- trying to convert all enums and constants to CAPITALIZED_STYLE, with
#define definitions like
#define my_old_constants MY_NEW_CONSTANT
- big, big update of the documentation comments
* include/freetype/freetype.h, src/base/ftobjs.c, src/smooth/ftsmooth.c,
include/freetype/ftimage.h: adding support for LCD-optimized rendering
though the new constants/enums:
FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V
FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V
this is still work in progress, don't expect everything to work correctly
though most of the features have been implemented.
* adding new FT_LOAD_XXX flags, used to specify both hinting and rendering
targets:
FT_LOAD_TARGET_NORMAL :: anti-aliased hinting & rendering
FT_LOAD_TARGET_MONO :: monochrome bitmaps
FT_LOAD_TARGET_LCD :: horizontal RGB/BGR decimated hinting & rendering
FT_LOAD_TARGET_LCD_V :: vertical RGB/BGR decimated hinting & rendering
note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
behaviour of the font engine is _unchanged_.
2002-08-27 22:20:29 +02:00
|
|
|
/* AH_OutlineRec functions - they should be typically called in this order */
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_new( FT_Memory memory,
|
|
|
|
AH_Outline* aoutline );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_load( AH_Outline outline,
|
|
|
|
FT_Face face );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_compute_segments( AH_Outline outline );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_link_segments( AH_Outline outline );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_detect_features( AH_Outline outline );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_compute_blue_edges( AH_Outline outline,
|
|
|
|
AH_Face_Globals globals );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_scale_blue_edges( AH_Outline outline,
|
|
|
|
AH_Face_Globals globals );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_save( AH_Outline outline,
|
|
|
|
AH_Loader loader );
|
2000-07-19 22:02:14 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-09-05 17:10:54 +02:00
|
|
|
ah_outline_done( AH_Outline outline );
|
2000-07-24 08:01:34 +02:00
|
|
|
|
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 */
|