The BIG graph update
[rrdtool.git] / libraries / freetype-2.0.5 / include / t1afm.h
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 /***************************************************************************/
17
18
19 #ifndef __T1AFM_H__
20 #define __T1AFM_H__
21
22 #include <ft2build.h>
23 #include "t1objs.h"
24
25
26 FT_BEGIN_HEADER
27
28
29   typedef struct  T1_Kern_Pair_
30   {
31     FT_UInt    glyph1;
32     FT_UInt    glyph2;
33     FT_Vector  kerning;
34
35   } T1_Kern_Pair;
36
37
38   typedef struct  T1_AFM_
39   {
40     FT_Int         num_pairs;
41     T1_Kern_Pair*  kern_pairs;
42
43   } T1_AFM;
44
45
46   FT_LOCAL FT_Error
47   T1_Read_AFM( FT_Face    face,
48                FT_Stream  stream );
49
50   FT_LOCAL void
51   T1_Done_AFM( FT_Memory  memory,
52                T1_AFM*    afm );
53
54   FT_LOCAL void
55   T1_Get_Kerning( T1_AFM*     afm,
56                   FT_UInt     glyph1,
57                   FT_UInt     glyph2,
58                   FT_Vector*  kerning );
59
60
61 FT_END_HEADER
62
63 #endif /* __T1AFM_H__ */
64
65
66 /* END */