David Turner | d2b1f35 | 1999-12-16 23:11:37 +0000 | [diff] [blame^] | 1 | /***************************************************************************/ |
| 2 | /* */ |
| 3 | /* ttpost.h */ |
| 4 | /* */ |
| 5 | /* Postcript name table processing for TrueType and OpenType fonts */ |
| 6 | /* (specification). */ |
| 7 | /* */ |
| 8 | /* Copyright 1996-1999 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 | /*************************************************************************/ |
| 21 | /* */ |
| 22 | /* The post table is not completely loaded by the core engine. This */ |
| 23 | /* file loads the missing PS glyph names and implements an API to access */ |
| 24 | /* them. */ |
| 25 | /* */ |
| 26 | /*************************************************************************/ |
| 27 | |
| 28 | |
| 29 | #ifndef TTPOST_H |
| 30 | #define TTPOST_H |
| 31 | |
| 32 | #include <ftconfig.h> |
| 33 | #include <tttypes.h> |
| 34 | |
| 35 | #ifdef __cplusplus |
| 36 | extern "C" { |
| 37 | #endif |
| 38 | |
| 39 | |
| 40 | #define TT_Err_Invalid_Post_Table_Format 0x0B00 |
| 41 | #define TT_Err_Invalid_Post_Table 0x0B01 |
| 42 | |
| 43 | #if 0 |
| 44 | /* the 258 standard Mac glyph names, used for format 1.0 and 2.5 */ |
| 45 | LOCAL_DEF |
| 46 | const TT_String* TT_Mac_Postscript_Names[]; |
| 47 | #endif |
| 48 | |
| 49 | |
| 50 | /*************************************************************************/ |
| 51 | /* */ |
| 52 | /* <Function> */ |
| 53 | /* TT_Get_PS_Name */ |
| 54 | /* */ |
| 55 | /* <Description> */ |
| 56 | /* Gets the PostScript glyph name of a glyph. */ |
| 57 | /* */ |
| 58 | /* <Input> */ |
| 59 | /* index :: The glyph index. */ |
| 60 | /* */ |
| 61 | /* PSname :: The address of a string pointer. Will be NULL in case */ |
| 62 | /* of error, otherwise it is a pointer to the glyph name. */ |
| 63 | /* */ |
| 64 | /* You must not modify the returned string! */ |
| 65 | /* */ |
| 66 | /* <Output> */ |
| 67 | /* TrueType error code. 0 means success. */ |
| 68 | /* */ |
| 69 | EXPORT_DEF |
| 70 | TT_Error TT_Get_PS_Name( TT_Face face, |
| 71 | TT_UInt index, |
| 72 | TT_String** PSname ); |
| 73 | |
| 74 | |
| 75 | LOCAL_DEF |
| 76 | void TT_Free_Post_Names( TT_Face face ); |
| 77 | |
| 78 | |
| 79 | #ifdef __cplusplus |
| 80 | } |
| 81 | #endif |
| 82 | |
| 83 | |
| 84 | #endif /* TTPOST_H */ |
| 85 | |
| 86 | |
| 87 | /* END */ |