00001 /***************************************************************************/ 00002 /* */ 00003 /* ftbase.h */ 00004 /* */ 00005 /* The FreeType private functions used in base module (specification). */ 00006 /* */ 00007 /* Copyright 2008, 2010 by */ 00008 /* David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya. */ 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 __FTBASE_H__ 00020 #define __FTBASE_H__ 00021 00022 00023 #include <ft2build.h> 00024 #include FT_INTERNAL_OBJECTS_H 00025 00026 00027 FT_BEGIN_HEADER 00028 00029 00030 /* Assume the stream is sfnt-wrapped PS Type1 or sfnt-wrapped CID-keyed */ 00031 /* font, and try to load a face specified by the face_index. */ 00032 FT_LOCAL( FT_Error ) 00033 open_face_PS_from_sfnt_stream( FT_Library library, 00034 FT_Stream stream, 00035 FT_Long face_index, 00036 FT_Int num_params, 00037 FT_Parameter *params, 00038 FT_Face *aface ); 00039 00040 00041 /* Create a new FT_Face given a buffer and a driver name. */ 00042 /* From ftmac.c. */ 00043 FT_LOCAL( FT_Error ) 00044 open_face_from_buffer( FT_Library library, 00045 FT_Byte* base, 00046 FT_ULong size, 00047 FT_Long face_index, 00048 const char* driver_name, 00049 FT_Face *aface ); 00050 00051 00052 FT_END_HEADER 00053 00054 #endif /* __FTBASE_H__ */ 00055 00056 00057 /* END */