• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 (C) 1996-2023 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 <freetype/internal/ftstream.h>
25 #include <freetype/internal/tttypes.h>
26 
27 
28 FT_BEGIN_HEADER
29 
30 
31   FT_LOCAL( TT_Table  )
32   tt_face_lookup_table( TT_Face   face,
33                         FT_ULong  tag );
34 
35   FT_LOCAL( FT_Error )
36   tt_face_goto_table( TT_Face    face,
37                       FT_ULong   tag,
38                       FT_Stream  stream,
39                       FT_ULong*  length );
40 
41 
42   FT_LOCAL( FT_Error )
43   tt_face_load_font_dir( TT_Face    face,
44                          FT_Stream  stream );
45 
46 
47   FT_LOCAL( FT_Error )
48   tt_face_load_any( TT_Face    face,
49                     FT_ULong   tag,
50                     FT_Long    offset,
51                     FT_Byte*   buffer,
52                     FT_ULong*  length );
53 
54 
55   FT_LOCAL( FT_Error )
56   tt_face_load_head( TT_Face    face,
57                      FT_Stream  stream );
58 
59 
60   FT_LOCAL( FT_Error )
61   tt_face_load_cmap( TT_Face    face,
62                      FT_Stream  stream );
63 
64 
65   FT_LOCAL( FT_Error )
66   tt_face_load_maxp( TT_Face    face,
67                      FT_Stream  stream );
68 
69 
70   FT_LOCAL( FT_Error )
71   tt_face_load_name( TT_Face    face,
72                      FT_Stream  stream );
73 
74 
75   FT_LOCAL( FT_Error )
76   tt_face_load_os2( TT_Face    face,
77                     FT_Stream  stream );
78 
79 
80   FT_LOCAL( FT_Error )
81   tt_face_load_post( TT_Face    face,
82                      FT_Stream  stream );
83 
84 
85   FT_LOCAL( FT_Error )
86   tt_face_load_pclt( TT_Face    face,
87                      FT_Stream  stream );
88 
89   FT_LOCAL( void )
90   tt_face_free_name( TT_Face  face );
91 
92 
93   FT_LOCAL( FT_Error )
94   tt_face_load_gasp( TT_Face    face,
95                      FT_Stream  stream );
96 
97 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
98 
99   FT_LOCAL( FT_Error )
100   tt_face_load_bhed( TT_Face    face,
101                      FT_Stream  stream );
102 
103 #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
104 
105 
106 FT_END_HEADER
107 
108 #endif /* TTLOAD_H_ */
109 
110 
111 /* END */
112