1 /***************************************************************************/
2 /* */
3 /* t1afm.h */
4 /* */
5 /* AFM support for Type 1 fonts (specification). */
6 /* */
7 /* Copyright 1996-2001 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */
10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
15 /* */
16 /***************************************************************************/
19 #ifndef __T1AFM_H__
20 #define __T1AFM_H__
22 #include <ft2build.h>
23 #include "t1objs.h"
26 FT_BEGIN_HEADER
29 typedef struct T1_Kern_Pair_
30 {
31 FT_UInt glyph1;
32 FT_UInt glyph2;
33 FT_Vector kerning;
35 } T1_Kern_Pair;
38 typedef struct T1_AFM_
39 {
40 FT_Int num_pairs;
41 T1_Kern_Pair* kern_pairs;
43 } T1_AFM;
46 FT_LOCAL FT_Error
47 T1_Read_AFM( FT_Face face,
48 FT_Stream stream );
50 FT_LOCAL void
51 T1_Done_AFM( FT_Memory memory,
52 T1_AFM* afm );
54 FT_LOCAL void
55 T1_Get_Kerning( T1_AFM* afm,
56 FT_UInt glyph1,
57 FT_UInt glyph2,
58 FT_Vector* kerning );
61 FT_END_HEADER
63 #endif /* __T1AFM_H__ */
66 /* END */