2002-02-27 22:25:47 +01:00
|
|
|
#ifndef __FT_TYPE1_CMAP_H__
|
|
|
|
#define __FT_TYPE1_CMAP_H__
|
|
|
|
|
2002-03-21 16:02:54 +01:00
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_INTERNAL_OBJECTS_H
|
|
|
|
#include FT_INTERNAL_TYPE1_TYPES_H
|
|
|
|
#include FT_INTERNAL_POSTSCRIPT_NAMES_H
|
|
|
|
|
2002-02-27 22:25:47 +01:00
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
/***************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** TYPE1 STANDARD (AND EXPERT) ENCODING CMAPS *****/
|
|
|
|
/***** *****/
|
|
|
|
/***************************************************************************/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2002-03-20 10:42:31 +01:00
|
|
|
/* standard (and expert) encoding cmaps */
|
|
|
|
typedef struct T1_CMapStdRec_* T1_CMapStd;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
|
|
|
typedef struct T1_CMapStdRec_
|
|
|
|
{
|
2002-03-21 16:02:54 +01:00
|
|
|
FT_CMapRec cmap;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
2002-03-21 16:02:54 +01:00
|
|
|
const FT_UShort* code_to_sid;
|
|
|
|
PS_Adobe_Std_Strings_Func sid_to_string;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
2002-03-21 16:02:54 +01:00
|
|
|
FT_UInt num_glyphs;
|
|
|
|
const char* const* glyph_names;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
|
|
|
} T1_CMapStdRec;
|
|
|
|
|
|
|
|
|
2002-03-28 09:07:16 +01:00
|
|
|
FT_CALLBACK_TABLE const FT_CMap_ClassRec
|
|
|
|
t1_cmap_standard_class_rec;
|
2002-03-21 16:02:54 +01:00
|
|
|
|
2002-03-28 09:07:16 +01:00
|
|
|
FT_CALLBACK_TABLE const FT_CMap_ClassRec
|
|
|
|
t1_cmap_expert_class_rec;
|
2002-03-21 16:02:54 +01:00
|
|
|
|
2002-02-27 22:25:47 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/***************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** TYPE1 CUSTOM ENCODING CMAP *****/
|
|
|
|
/***** *****/
|
|
|
|
/***************************************************************************/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
typedef struct T1_CMapCustomRec_* T1_CMapCustom;
|
|
|
|
|
|
|
|
typedef struct T1_CMapCustomRec_
|
|
|
|
{
|
|
|
|
FT_CMapRec cmap;
|
|
|
|
FT_UInt first;
|
|
|
|
FT_UInt count;
|
2002-03-21 16:02:54 +01:00
|
|
|
FT_UShort* indices;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
|
|
|
} T1_CMapCustomRec;
|
|
|
|
|
2002-03-28 09:07:16 +01:00
|
|
|
FT_CALLBACK_TABLE const FT_CMap_ClassRec
|
|
|
|
t1_cmap_custom_class_rec;
|
2002-03-21 16:02:54 +01:00
|
|
|
|
2002-02-27 22:25:47 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/***************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** TYPE1 SYNTHETIC UNICODE ENCODING CMAP *****/
|
|
|
|
/***** *****/
|
|
|
|
/***************************************************************************/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2002-03-20 10:42:31 +01:00
|
|
|
/* unicode (syntehtic) cmaps */
|
|
|
|
typedef struct T1_CMapUnicodeRec_* T1_CMapUnicode;
|
|
|
|
|
2002-02-27 22:25:47 +01:00
|
|
|
typedef struct T1_CMapUniPairRec_
|
|
|
|
{
|
|
|
|
FT_UInt32 unicode;
|
|
|
|
FT_UInt gindex;
|
|
|
|
|
2002-03-20 10:42:31 +01:00
|
|
|
} T1_CMapUniPairRec, *T1_CMapUniPair;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct T1_CMapUnicodeRec_
|
|
|
|
{
|
|
|
|
FT_CMapRec cmap;
|
|
|
|
FT_UInt num_pairs;
|
|
|
|
T1_CMapUniPair pairs;
|
|
|
|
|
|
|
|
} T1_CMapUnicodeRec;
|
|
|
|
|
|
|
|
|
2002-03-28 09:07:16 +01:00
|
|
|
FT_CALLBACK_TABLE const FT_CMap_ClassRec
|
|
|
|
t1_cmap_unicode_class_rec;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
|
|
|
/* */
|
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
|
|
|
#endif /* __FT_TYPE1_CMAP_H__ */
|