-/***************************************************************************/\r
-/* */\r
-/* afmparse.h */\r
-/* */\r
-/* AFM parser (specification). */\r
-/* */\r
-/* Copyright 2006 by */\r
-/* David Turner, Robert Wilhelm, and Werner Lemberg. */\r
-/* */\r
-/* This file is part of the FreeType project, and may only be used, */\r
-/* modified, and distributed under the terms of the FreeType project */\r
-/* license, LICENSE.TXT. By continuing to use, modify, or distribute */\r
-/* this file you indicate that you have read the license and */\r
-/* understand and accept it fully. */\r
-/* */\r
-/***************************************************************************/\r
-\r
-\r
-#ifndef __AFMPARSE_H__\r
-#define __AFMPARSE_H__\r
-\r
-\r
-#include <ft2build.h>\r
-#include FT_INTERNAL_POSTSCRIPT_AUX_H\r
-\r
-\r
-FT_BEGIN_HEADER\r
-\r
-\r
- FT_LOCAL( FT_Error )\r
- afm_parser_init( AFM_Parser parser,\r
- FT_Memory memory,\r
- FT_Byte* base,\r
- FT_Byte* limit );\r
-\r
-\r
- FT_LOCAL( void )\r
- afm_parser_done( AFM_Parser parser );\r
-\r
-\r
- FT_LOCAL( FT_Error )\r
- afm_parser_parse( AFM_Parser parser );\r
-\r
-\r
- enum AFM_ValueType_\r
- {\r
- AFM_VALUE_TYPE_STRING,\r
- AFM_VALUE_TYPE_NAME,\r
- AFM_VALUE_TYPE_FIXED, /* real number */\r
- AFM_VALUE_TYPE_INTEGER,\r
- AFM_VALUE_TYPE_BOOL,\r
- AFM_VALUE_TYPE_INDEX /* glyph index */\r
- };\r
-\r
-\r
- typedef struct AFM_ValueRec_\r
- {\r
- enum AFM_ValueType_ type;\r
- union {\r
- char* s;\r
- FT_Fixed f;\r
- FT_Int i;\r
- FT_Bool b;\r
-\r
- } u;\r
-\r
- } AFM_ValueRec, *AFM_Value;\r
-\r
-#define AFM_MAX_ARGUMENTS 5\r
-\r
- FT_LOCAL( FT_Int )\r
- afm_parser_read_vals( AFM_Parser parser,\r
- AFM_Value vals,\r
- FT_Int n );\r
-\r
- /* read the next key from the next line or column */\r
- FT_LOCAL( char* )\r
- afm_parser_next_key( AFM_Parser parser,\r
- FT_Bool line,\r
- FT_UInt* len );\r
-\r
-FT_END_HEADER\r
-\r
-#endif /* __AFMPARSE_H__ */\r
-\r
-\r
-/* END */\r
+/***************************************************************************/
+/* */
+/* afmparse.h */
+/* */
+/* AFM parser (specification). */
+/* */
+/* Copyright 2006 by */
+/* David Turner, Robert Wilhelm, and Werner Lemberg. */
+/* */
+/* This file is part of the FreeType project, and may only be used, */
+/* modified, and distributed under the terms of the FreeType project */
+/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
+/* this file you indicate that you have read the license and */
+/* understand and accept it fully. */
+/* */
+/***************************************************************************/
+
+
+#ifndef __AFMPARSE_H__
+#define __AFMPARSE_H__
+
+
+#include <ft2build.h>
+#include FT_INTERNAL_POSTSCRIPT_AUX_H
+
+
+FT_BEGIN_HEADER
+
+
+ FT_LOCAL( FT_Error )
+ afm_parser_init( AFM_Parser parser,
+ FT_Memory memory,
+ FT_Byte* base,
+ FT_Byte* limit );
+
+
+ FT_LOCAL( void )
+ afm_parser_done( AFM_Parser parser );
+
+
+ FT_LOCAL( FT_Error )
+ afm_parser_parse( AFM_Parser parser );
+
+
+ enum AFM_ValueType_
+ {
+ AFM_VALUE_TYPE_STRING,
+ AFM_VALUE_TYPE_NAME,
+ AFM_VALUE_TYPE_FIXED, /* real number */
+ AFM_VALUE_TYPE_INTEGER,
+ AFM_VALUE_TYPE_BOOL,
+ AFM_VALUE_TYPE_INDEX /* glyph index */
+ };
+
+
+ typedef struct AFM_ValueRec_
+ {
+ enum AFM_ValueType_ type;
+ union {
+ char* s;
+ FT_Fixed f;
+ FT_Int i;
+ FT_Bool b;
+
+ } u;
+
+ } AFM_ValueRec, *AFM_Value;
+
+#define AFM_MAX_ARGUMENTS 5
+
+ FT_LOCAL( FT_Int )
+ afm_parser_read_vals( AFM_Parser parser,
+ AFM_Value vals,
+ FT_Int n );
+
+ /* read the next key from the next line or column */
+ FT_LOCAL( char* )
+ afm_parser_next_key( AFM_Parser parser,
+ FT_Bool line,
+ FT_UInt* len );
+
+FT_END_HEADER
+
+#endif /* __AFMPARSE_H__ */
+
+
+/* END */