1 /***************************************************************************/ 2 /* */ 3 /* ahglyph.h */ 4 /* */ 5 /* Routines used to load and analyze a given glyph before hinting */ 6 /* (specification). */ 7 /* */ 8 /* Copyright 2000-2001, 2002 Catharon Productions Inc. */ 9 /* Author: David Turner */ 10 /* */ 11 /* This file is part of the Catharon Typography Project and shall only */ 12 /* be used, modified, and distributed under the terms of the Catharon */ 13 /* Open Source License that should come with this file under the name */ 14 /* `CatharonLicense.txt'. By continuing to use, modify, or distribute */ 15 /* this file you indicate that you have read the license and */ 16 /* understand and accept it fully. */ 17 /* */ 18 /* Note that this license is compatible with the FreeType license. */ 19 /* */ 20 /***************************************************************************/ 21 22 23 #ifndef __AHGLYPH_H__ 24 #define __AHGLYPH_H__ 25 26 27 #include <ft2build.h> 28 #include "ahtypes.h" 29 30 31 FT_BEGIN_HEADER 32 33 34 typedef enum AH_UV_ 35 { 36 AH_UV_FXY, 37 AH_UV_FYX, 38 AH_UV_OXY, 39 AH_UV_OYX, 40 AH_UV_OX, 41 AH_UV_OY, 42 AH_UV_YX, 43 AH_UV_XY /* should always be last! */ 44 45 } AH_UV; 46 47 48 FT_LOCAL( void ) 49 ah_setup_uv( AH_Outline outline, 50 AH_UV source ); 51 52 53 /* AH_OutlineRec functions - they should be typically called in this order */ 54 55 FT_LOCAL( FT_Error ) 56 ah_outline_new( FT_Memory memory, 57 AH_Outline* aoutline ); 58 59 FT_LOCAL( FT_Error ) 60 ah_outline_load( AH_Outline outline, 61 FT_Face face ); 62 63 FT_LOCAL( void ) 64 ah_outline_compute_segments( AH_Outline outline ); 65 66 FT_LOCAL( void ) 67 ah_outline_link_segments( AH_Outline outline ); 68 69 FT_LOCAL( void ) 70 ah_outline_detect_features( AH_Outline outline ); 71 72 FT_LOCAL( void ) 73 ah_outline_compute_blue_edges( AH_Outline outline, 74 AH_Face_Globals globals ); 75 76 FT_LOCAL( void ) 77 ah_outline_scale_blue_edges( AH_Outline outline, 78 AH_Face_Globals globals ); 79 80 FT_LOCAL( void ) 81 ah_outline_save( AH_Outline outline, 82 AH_Loader loader ); 83 84 FT_LOCAL( void ) 85 ah_outline_done( AH_Outline outline ); 86 87 88 FT_END_HEADER 89 90 #endif /* __AHGLYPH_H__ */ 91 92 93 /* END */ 94