update for HEAD-2003050101
[reactos.git] / lib / freetype / src / sfnt / ttload.h
1 /***************************************************************************/
2 /*                                                                         */
3 /*  ttload.h                                                               */
4 /*                                                                         */
5 /*    Load the basic TrueType tables, i.e., tables that can be either in   */
6 /*    TTF or OTF fonts (specification).                                    */
7 /*                                                                         */
8 /*  Copyright 1996-2001, 2002 by                                           */
9 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
10 /*                                                                         */
11 /*  This file is part of the FreeType project, and may only be used,       */
12 /*  modified, and distributed under the terms of the FreeType project      */
13 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
14 /*  this file you indicate that you have read the license and              */
15 /*  understand and accept it fully.                                        */
16 /*                                                                         */
17 /***************************************************************************/
18
19
20 #ifndef __TTLOAD_H__
21 #define __TTLOAD_H__
22
23
24 #include <ft2build.h>
25 #include FT_INTERNAL_STREAM_H
26 #include FT_INTERNAL_TRUETYPE_TYPES_H
27
28
29 FT_BEGIN_HEADER
30
31
32   FT_LOCAL( TT_Table  )
33   tt_face_lookup_table( TT_Face   face,
34                         FT_ULong  tag );
35
36   FT_LOCAL( FT_Error )
37   tt_face_goto_table( TT_Face    face,
38                       FT_ULong   tag,
39                       FT_Stream  stream,
40                       FT_ULong*  length );
41
42
43   FT_LOCAL( FT_Error )
44   tt_face_load_sfnt_header( TT_Face      face,
45                             FT_Stream    stream,
46                             FT_Long      face_index,
47                             SFNT_Header  sfnt );
48
49   FT_LOCAL( FT_Error )
50   tt_face_load_directory( TT_Face      face,
51                           FT_Stream    stream,
52                           SFNT_Header  sfnt );
53
54   FT_LOCAL( FT_Error )
55   tt_face_load_any( TT_Face    face,
56                     FT_ULong   tag,
57                     FT_Long    offset,
58                     FT_Byte*   buffer,
59                     FT_ULong*  length );
60
61
62   FT_LOCAL( FT_Error )
63   tt_face_load_header( TT_Face    face,
64                        FT_Stream  stream );
65
66
67   FT_LOCAL( FT_Error )
68   tt_face_load_metrics_header( TT_Face    face,
69                                FT_Stream  stream,
70                                FT_Bool    vertical );
71
72
73   FT_LOCAL( FT_Error )
74   tt_face_load_cmap( TT_Face    face,
75                      FT_Stream  stream );
76
77
78   FT_LOCAL( FT_Error )
79   tt_face_load_max_profile( TT_Face    face,
80                             FT_Stream  stream );
81
82
83   FT_LOCAL( FT_Error )
84   tt_face_load_names( TT_Face    face,
85                       FT_Stream  stream );
86
87
88   FT_LOCAL( FT_Error )
89   tt_face_load_os2( TT_Face    face,
90                     FT_Stream  stream );
91
92
93   FT_LOCAL( FT_Error )
94   tt_face_load_postscript( TT_Face    face,
95                            FT_Stream  stream );
96
97
98   FT_LOCAL( FT_Error )
99   tt_face_load_hdmx( TT_Face    face,
100                      FT_Stream  stream );
101
102   FT_LOCAL( FT_Error )
103   tt_face_load_pclt( TT_Face    face,
104                      FT_Stream  stream );
105
106   FT_LOCAL( void )
107   tt_face_free_names( TT_Face  face );
108
109
110   FT_LOCAL( void )
111   tt_face_free_hdmx ( TT_Face  face );
112
113
114   FT_LOCAL( FT_Error )
115   tt_face_load_kern( TT_Face    face,
116                      FT_Stream  stream );
117
118
119   FT_LOCAL( FT_Error )
120   tt_face_load_gasp( TT_Face    face,
121                      FT_Stream  stream );
122
123 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
124
125   FT_LOCAL( FT_Error )
126   tt_face_load_bitmap_header( TT_Face    face,
127                               FT_Stream  stream );
128
129 #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
130
131
132 FT_END_HEADER
133
134 #endif /* __TTLOAD_H__ */
135
136
137 /* END */