Imported Upstream version 2.10.1
[platform/upstream/freetype2.git] / src / sfnt / ttmtx.h
1 /****************************************************************************
2  *
3  * ttmtx.h
4  *
5  *   Load the metrics tables common to TTF and OTF fonts (specification).
6  *
7  * Copyright (C) 2006-2019 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 TTMTX_H_
20 #define TTMTX_H_
21
22
23 #include <ft2build.h>
24 #include FT_INTERNAL_STREAM_H
25 #include FT_INTERNAL_TRUETYPE_TYPES_H
26
27
28 FT_BEGIN_HEADER
29
30
31   FT_LOCAL( FT_Error )
32   tt_face_load_hhea( TT_Face    face,
33                      FT_Stream  stream,
34                      FT_Bool    vertical );
35
36
37   FT_LOCAL( FT_Error )
38   tt_face_load_hmtx( TT_Face    face,
39                      FT_Stream  stream,
40                      FT_Bool    vertical );
41
42
43   FT_LOCAL( void )
44   tt_face_get_metrics( TT_Face     face,
45                        FT_Bool     vertical,
46                        FT_UInt     gindex,
47                        FT_Short*   abearing,
48                        FT_UShort*  aadvance );
49
50 FT_END_HEADER
51
52 #endif /* TTMTX_H_ */
53
54
55 /* END */