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