1 /**************************************************************************** 2 * 3 * ttmtx.h 4 * 5 * Load the metrics tables common to TTF and OTF fonts (specification). 6 * 7 * Copyright (C) 2006-2020 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 <freetype/internal/ftstream.h> 24 #include <freetype/internal/tttypes.h> 25 26 27 FT_BEGIN_HEADER 28 29 30 FT_LOCAL( FT_Error ) 31 tt_face_load_hhea( TT_Face face, 32 FT_Stream stream, 33 FT_Bool vertical ); 34 35 36 FT_LOCAL( FT_Error ) 37 tt_face_load_hmtx( TT_Face face, 38 FT_Stream stream, 39 FT_Bool vertical ); 40 41 42 FT_LOCAL( void ) 43 tt_face_get_metrics( TT_Face face, 44 FT_Bool vertical, 45 FT_UInt gindex, 46 FT_Short* abearing, 47 FT_UShort* aadvance ); 48 49 FT_END_HEADER 50 51 #endif /* TTMTX_H_ */ 52 53 54 /* END */ 55