]>
Commit | Line | Data |
---|---|---|
cabec872 RR |
1 | /***************************************************************************/ |
2 | /* */ | |
3 | /* t1afm.h */ | |
4 | /* */ | |
5 | /* AFM support for Type 1 fonts (specification). */ | |
6 | /* */ | |
7 | /* Copyright 1996-2000 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 <freetype/internal/ftobjs.h> | |
23 | ||
24 | ||
25 | #ifdef __cplusplus | |
26 | extern "C" { | |
27 | #endif | |
28 | ||
29 | ||
30 | typedef struct T1_Kern_Pair_ | |
31 | { | |
32 | FT_UInt glyph1; | |
33 | FT_UInt glyph2; | |
34 | FT_Vector kerning; | |
35 | ||
36 | } T1_Kern_Pair; | |
37 | ||
38 | ||
39 | typedef struct T1_AFM_ | |
40 | { | |
41 | FT_Int num_pairs; | |
42 | T1_Kern_Pair* kern_pairs; | |
43 | ||
44 | } T1_AFM; | |
45 | ||
46 | ||
47 | LOCAL_DEF | |
48 | FT_Error T1_Read_AFM( FT_Face face, | |
49 | FT_Stream stream ); | |
50 | ||
51 | LOCAL_DEF | |
52 | void T1_Done_AFM( FT_Memory memory, | |
53 | T1_AFM* afm ); | |
54 | ||
55 | LOCAL_DEF | |
56 | void T1_Get_Kerning( T1_AFM* afm, | |
57 | FT_UInt glyph1, | |
58 | FT_UInt glyph2, | |
59 | FT_Vector* kerning ); | |
60 | ||
61 | ||
62 | #ifdef __cplusplus | |
63 | } | |
64 | #endif | |
65 | ||
66 | ||
67 | #endif /* T1AFM_H */ | |
68 | ||
69 | ||
70 | /* END */ |