| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* afmparse.h */ | 3 /* afmparse.h */ |
| 4 /* */ | 4 /* */ |
| 5 /* AFM parser (specification). */ | 5 /* AFM parser (specification). */ |
| 6 /* */ | 6 /* */ |
| 7 /* Copyright 2006 by */ | 7 /* Copyright 2006-2015 by */ |
| 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
| 9 /* */ | 9 /* */ |
| 10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
| 11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
| 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
| 13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
| 14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
| 15 /* */ | 15 /* */ |
| 16 /***************************************************************************/ | 16 /***************************************************************************/ |
| 17 | 17 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 | 55 |
| 56 typedef struct AFM_ValueRec_ | 56 typedef struct AFM_ValueRec_ |
| 57 { | 57 { |
| 58 enum AFM_ValueType_ type; | 58 enum AFM_ValueType_ type; |
| 59 union | 59 union |
| 60 { | 60 { |
| 61 char* s; | 61 char* s; |
| 62 FT_Fixed f; | 62 FT_Fixed f; |
| 63 FT_Int i; | 63 FT_Int i; |
| 64 FT_UInt u; |
| 64 FT_Bool b; | 65 FT_Bool b; |
| 65 | 66 |
| 66 } u; | 67 } u; |
| 67 | 68 |
| 68 } AFM_ValueRec, *AFM_Value; | 69 } AFM_ValueRec, *AFM_Value; |
| 69 | 70 |
| 70 #define AFM_MAX_ARGUMENTS 5 | 71 #define AFM_MAX_ARGUMENTS 5 |
| 71 | 72 |
| 72 FT_LOCAL( FT_Int ) | 73 FT_LOCAL( FT_Int ) |
| 73 afm_parser_read_vals( AFM_Parser parser, | 74 afm_parser_read_vals( AFM_Parser parser, |
| 74 AFM_Value vals, | 75 AFM_Value vals, |
| 75 FT_UInt n ); | 76 FT_Int n ); |
| 76 | 77 |
| 77 /* read the next key from the next line or column */ | 78 /* read the next key from the next line or column */ |
| 78 FT_LOCAL( char* ) | 79 FT_LOCAL( char* ) |
| 79 afm_parser_next_key( AFM_Parser parser, | 80 afm_parser_next_key( AFM_Parser parser, |
| 80 FT_Bool line, | 81 FT_Bool line, |
| 81 FT_Offset* len ); | 82 FT_Offset* len ); |
| 82 | 83 |
| 83 FT_END_HEADER | 84 FT_END_HEADER |
| 84 | 85 |
| 85 #endif /* __AFMPARSE_H__ */ | 86 #endif /* __AFMPARSE_H__ */ |
| 86 | 87 |
| 87 | 88 |
| 88 /* END */ | 89 /* END */ |
| OLD | NEW |