Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenafmparse.h
Go to the documentation of this file.
00001 /***************************************************************************/ 00002 /* */ 00003 /* afmparse.h */ 00004 /* */ 00005 /* AFM parser (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 __AFMPARSE_H__ 00020 #define __AFMPARSE_H__ 00021 00022 00023 #include <ft2build.h> 00024 #include FT_INTERNAL_POSTSCRIPT_AUX_H 00025 00026 00027 FT_BEGIN_HEADER 00028 00029 00030 FT_LOCAL( FT_Error ) 00031 afm_parser_init( AFM_Parser parser, 00032 FT_Memory memory, 00033 FT_Byte* base, 00034 FT_Byte* limit ); 00035 00036 00037 FT_LOCAL( void ) 00038 afm_parser_done( AFM_Parser parser ); 00039 00040 00041 FT_LOCAL( FT_Error ) 00042 afm_parser_parse( AFM_Parser parser ); 00043 00044 00045 enum AFM_ValueType_ 00046 { 00047 AFM_VALUE_TYPE_STRING, 00048 AFM_VALUE_TYPE_NAME, 00049 AFM_VALUE_TYPE_FIXED, /* real number */ 00050 AFM_VALUE_TYPE_INTEGER, 00051 AFM_VALUE_TYPE_BOOL, 00052 AFM_VALUE_TYPE_INDEX /* glyph index */ 00053 }; 00054 00055 00056 typedef struct AFM_ValueRec_ 00057 { 00058 enum AFM_ValueType_ type; 00059 union 00060 { 00061 char* s; 00062 FT_Fixed f; 00063 FT_Int i; 00064 FT_Bool b; 00065 00066 } u; 00067 00068 } AFM_ValueRec, *AFM_Value; 00069 00070 #define AFM_MAX_ARGUMENTS 5 00071 00072 FT_LOCAL( FT_Int ) 00073 afm_parser_read_vals( AFM_Parser parser, 00074 AFM_Value vals, 00075 FT_UInt n ); 00076 00077 /* read the next key from the next line or column */ 00078 FT_LOCAL( char* ) 00079 afm_parser_next_key( AFM_Parser parser, 00080 FT_Bool line, 00081 FT_Offset* len ); 00082 00083 FT_END_HEADER 00084 00085 #endif /* __AFMPARSE_H__ */ 00086 00087 00088 /* END */ Generated on Sun May 27 2012 04:33:58 for ReactOS by
1.7.6.1
|