]> git.saurik.com Git - wxWidgets.git/blame - src/freetype/type1z/z1afm.h
Don't complain under MicroWindows if a wxDC's HDC is NULL - it happens
[wxWidgets.git] / src / freetype / type1z / z1afm.h
CommitLineData
cabec872
RR
1/***************************************************************************/
2/* */
3/* z1afm.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 Z1AFM_H
20#define Z1AFM_H
21
22
23#ifdef FT_FLAT_COMPILE
24
25#include "z1objs.h"
26
27#else
28
29#include <type1z/z1objs.h>
30
31#endif
32
33
34#ifdef __cplusplus
35 extern "C" {
36#endif
37
38
39 typedef struct Z1_Kern_Pair_
40 {
41 FT_UInt glyph1;
42 FT_UInt glyph2;
43 FT_Vector kerning;
44
45 } Z1_Kern_Pair;
46
47
48 typedef struct Z1_AFM_
49 {
50 FT_Int num_pairs;
51 Z1_Kern_Pair* kern_pairs;
52
53 } Z1_AFM;
54
55
56 LOCAL_DEF
57 FT_Error Z1_Read_AFM( FT_Face face,
58 FT_Stream stream );
59
60 LOCAL_DEF
61 void Z1_Done_AFM( FT_Memory memory,
62 Z1_AFM* afm );
63
64 LOCAL_DEF
65 void Z1_Get_Kerning( Z1_AFM* afm,
66 FT_UInt glyph1,
67 FT_UInt glyph2,
68 FT_Vector* kerning );
69
70
71#ifdef __cplusplus
72 }
73#endif
74
75
76#endif /* Z1AFM_H */
77
78
79/* END */