1/****************************************************************************
2 *
3 * ttkern.h
4 *
5 * Load the basic TrueType kerning table. This doesn't handle
6 * kerning data within the GPOS table at the moment.
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 TTKERN_H_
21#define TTKERN_H_
22
23
24#include <freetype/internal/ftstream.h>
25#include <freetype/internal/tttypes.h>
26
27
28FT_BEGIN_HEADER
29
30
31 FT_LOCAL( FT_Error )
32 tt_face_load_kern( TT_Face face,
33 FT_Stream stream );
34
35 FT_LOCAL( void )
36 tt_face_done_kern( TT_Face face );
37
38 FT_LOCAL( FT_Int )
39 tt_face_get_kerning( TT_Face face,
40 FT_UInt left_glyph,
41 FT_UInt right_glyph );
42
43#define TT_FACE_HAS_KERNING( face ) ( (face)->kern_avail_bits != 0 )
44
45
46FT_END_HEADER
47
48#endif /* TTKERN_H_ */
49
50
51/* END */
52