00001 /***************************************************************************/ 00002 /* */ 00003 /* ttmtx.h */ 00004 /* */ 00005 /* Load the metrics tables common to TTF and OTF fonts (specification). */ 00006 /* */ 00007 /* Copyright 2006 by */ 00008 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 00009 /* */ 00010 /* This file is part of the FreeType project, and may only be used, */ 00011 /* modified, and distributed under the terms of the FreeType project */ 00012 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 00013 /* this file you indicate that you have read the license and */ 00014 /* understand and accept it fully. */ 00015 /* */ 00016 /***************************************************************************/ 00017 00018 00019 #ifndef __TTMTX_H__ 00020 #define __TTMTX_H__ 00021 00022 00023 #include <ft2build.h> 00024 #include FT_INTERNAL_STREAM_H 00025 #include FT_INTERNAL_TRUETYPE_TYPES_H 00026 00027 00028 FT_BEGIN_HEADER 00029 00030 00031 FT_LOCAL( FT_Error ) 00032 tt_face_load_hhea( TT_Face face, 00033 FT_Stream stream, 00034 FT_Bool vertical ); 00035 00036 00037 FT_LOCAL( FT_Error ) 00038 tt_face_load_hmtx( TT_Face face, 00039 FT_Stream stream, 00040 FT_Bool vertical ); 00041 00042 00043 FT_LOCAL( FT_Error ) 00044 tt_face_get_metrics( TT_Face face, 00045 FT_Bool vertical, 00046 FT_UInt gindex, 00047 FT_Short* abearing, 00048 FT_UShort* aadvance ); 00049 00050 FT_END_HEADER 00051 00052 #endif /* __TTMTX_H__ */ 00053 00054 00055 /* END */