#ifndef FTXPOST_H
#define FTXPOST_H
#include "freetype.h"
#ifdef __cplusplus
extern "C" {
#endif
#define TT_Err_Invalid_Post_Table_Format 0x0B00
#define TT_Err_Invalid_Post_Table 0x0B01
extern TT_String* TT_Post_Default_Names[];
struct TT_Post_20_
{
TT_UShort numGlyphs;
TT_UShort* glyphNameIndex;
TT_Char** glyphNames;
};
typedef struct TT_Post_20_ TT_Post_20;
struct TT_Post_25_
{
TT_UShort numGlyphs;
TT_Char* offset;
};
typedef struct TT_Post_25_ TT_Post_25;
#if 0
struct TT_Post_40_
{
};
typedef struct TT_Post_40_ TT_Post_40;
#endif
struct TT_Post_
{
TT_Long offset;
TT_Long length;
TT_Bool loaded;
union
{
TT_Post_20 post20;
TT_Post_25 post25;
#if 0
TT_Post_40 post40;
#endif
} p;
};
typedef struct TT_Post_ TT_Post;
EXPORT_DEF
TT_Error TT_Init_Post_Extension( TT_Engine engine );
EXPORT_DEF
TT_Error TT_Load_PS_Names( TT_Face face,
TT_Post* post );
EXPORT_DEF
TT_Error TT_Get_PS_Name( TT_Face face,
TT_UShort index,
TT_String** PSname );
#ifdef __cplusplus
}
#endif
#endif