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 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 /***************************************************************************/
20 #ifndef __TTLOAD_H__
21 #define __TTLOAD_H__
24 #include <ft2build.h>
25 #include FT_INTERNAL_STREAM_H
26 #include FT_INTERNAL_TRUETYPE_TYPES_H
29 FT_BEGIN_HEADER
32 FT_LOCAL TT_Table*
33 TT_LookUp_Table( TT_Face face,
34 FT_ULong tag );
36 FT_LOCAL FT_Error
37 TT_Goto_Table( TT_Face face,
38 FT_ULong tag,
39 FT_Stream stream,
40 FT_ULong* length );
43 FT_LOCAL FT_Error
44 TT_Load_SFNT_Header( TT_Face face,
45 FT_Stream stream,
46 FT_Long face_index,
47 SFNT_Header* sfnt );
49 FT_LOCAL FT_Error
50 TT_Load_Directory( TT_Face face,
51 FT_Stream stream,
52 SFNT_Header* sfnt );
54 FT_LOCAL FT_Error
55 TT_Load_Any( TT_Face face,
56 FT_ULong tag,
57 FT_Long offset,
58 FT_Byte* buffer,
59 FT_ULong* length );
62 FT_LOCAL FT_Error
63 TT_Load_Header( TT_Face face,
64 FT_Stream stream );
67 FT_LOCAL FT_Error
68 TT_Load_Metrics_Header( TT_Face face,
69 FT_Stream stream,
70 FT_Bool vertical );
73 FT_LOCAL FT_Error
74 TT_Load_CMap( TT_Face face,
75 FT_Stream stream );
78 FT_LOCAL FT_Error
79 TT_Load_MaxProfile( TT_Face face,
80 FT_Stream stream );
83 FT_LOCAL FT_Error
84 TT_Load_Names( TT_Face face,
85 FT_Stream stream );
88 FT_LOCAL FT_Error
89 TT_Load_OS2( TT_Face face,
90 FT_Stream stream );
93 FT_LOCAL FT_Error
94 TT_Load_PostScript( TT_Face face,
95 FT_Stream stream );
98 FT_LOCAL FT_Error
99 TT_Load_Hdmx( TT_Face face,
100 FT_Stream stream );
102 FT_LOCAL FT_Error
103 TT_Load_PCLT( TT_Face face,
104 FT_Stream stream );
106 FT_LOCAL void
107 TT_Free_Names( TT_Face face );
110 FT_LOCAL void
111 TT_Free_Hdmx ( TT_Face face );
114 FT_LOCAL FT_Error
115 TT_Load_Kern( TT_Face face,
116 FT_Stream stream );
119 FT_LOCAL FT_Error
120 TT_Load_Gasp( TT_Face face,
121 FT_Stream stream );
123 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
125 FT_LOCAL FT_Error
126 TT_Load_Bitmap_Header( TT_Face face,
127 FT_Stream stream );
129 #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
132 FT_END_HEADER
134 #endif /* __TTLOAD_H__ */
137 /* END */