]> git.saurik.com Git - wxWidgets.git/blob - src/freetype/cid/cidafm.h
Updated version to 2.3.2 so apps can test for differences in new merged source
[wxWidgets.git] / src / freetype / cid / cidafm.h
1 /***************************************************************************/
2 /* */
3 /* cidafm.h */
4 /* */
5 /* AFM support for CID-keyed 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 CIDAFM_H
20 #define CIDAFM_H
21
22
23 #ifdef FT_FLAT_COMPILE
24
25 #include "cidobjs.h"
26
27 #else
28
29 #include <cid/cidobjs.h>
30
31 #endif
32
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38
39 typedef struct CID_Kern_Pair_
40 {
41 FT_UInt glyph1;
42 FT_UInt glyph2;
43 FT_Vector kerning;
44
45 } CID_Kern_Pair;
46
47 typedef struct CID_AFM_
48 {
49 FT_UInt num_pairs;
50 CID_Kern_Pair* kern_pairs;
51
52 } CID_AFM;
53
54
55 LOCAL_DEF
56 FT_Error CID_Read_AFM( FT_Face cid_face,
57 FT_Stream stream );
58
59 LOCAL_DEF
60 void CID_Done_AFM( FT_Memory memory,
61 CID_AFM* afm );
62
63 LOCAL_DEF
64 void CID_Get_Kerning( CID_AFM* afm,
65 FT_UInt glyph1,
66 FT_UInt glyph2,
67 FT_Vector* kerning );
68
69
70 #ifdef __cplusplus
71 }
72 #endif
73
74
75 #endif /* CIDAFM_H */
76
77
78 /* END */