2018-06-03 09:01:17 +02:00
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* t1cmap.h
|
|
|
|
*
|
|
|
|
* Type 1 character map support (specification).
|
|
|
|
*
|
2023-01-17 09:18:25 +01:00
|
|
|
* Copyright (C) 2002-2023 by
|
2018-06-03 09:01:17 +02:00
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
2002-03-31 13:18:15 +02:00
|
|
|
|
|
|
|
|
2016-01-12 21:37:13 +01:00
|
|
|
#ifndef T1CMAP_H_
|
|
|
|
#define T1CMAP_H_
|
2002-02-27 22:25:47 +01:00
|
|
|
|
2020-06-08 13:31:55 +02:00
|
|
|
#include <freetype/internal/ftobjs.h>
|
|
|
|
#include <freetype/internal/t1types.h>
|
2002-03-21 16:02:54 +01:00
|
|
|
|
2002-02-27 22:25:47 +01:00
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
|
|
|
2002-03-31 13:18:15 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** TYPE1 STANDARD (AND EXPERT) ENCODING CMAPS *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
2002-02-27 22:25:47 +01:00
|
|
|
|
2002-03-31 13:18:15 +02:00
|
|
|
/* standard (and expert) encoding cmaps */
|
|
|
|
typedef struct T1_CMapStdRec_* T1_CMapStd;
|
|
|
|
|
|
|
|
typedef struct T1_CMapStdRec_
|
2002-02-27 22:25:47 +01:00
|
|
|
{
|
2006-01-12 09:12:27 +01:00
|
|
|
FT_CMapRec cmap;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
2006-01-12 09:12:27 +01:00
|
|
|
const FT_UShort* code_to_sid;
|
|
|
|
PS_Adobe_Std_StringsFunc sid_to_string;
|
2002-02-27 22:25:47 +01:00
|
|
|
|
2006-01-12 09:12:27 +01:00
|
|
|
FT_UInt num_glyphs;
|
|
|
|
const char* const* glyph_names;
|
2003-09-29 22:33:37 +02:00
|
|
|
|
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;
|
2003-09-29 22:33:37 +02:00
|
|
|
|
2002-03-28 09:07:16 +01:00
|
|
|
FT_CALLBACK_TABLE const FT_CMap_ClassRec
|
|
|
|
t1_cmap_expert_class_rec;
|
2003-09-29 22:33:37 +02:00
|
|
|
|
2002-03-31 13:18:15 +02:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** TYPE1 CUSTOM ENCODING CMAP *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
typedef struct T1_CMapCustomRec_* T1_CMapCustom;
|
2003-09-29 22:33:37 +02:00
|
|
|
|
2002-03-31 13:18:15 +02:00
|
|
|
typedef struct T1_CMapCustomRec_
|
2002-02-27 22:25:47 +01:00
|
|
|
{
|
2002-03-31 13:18:15 +02:00
|
|
|
FT_CMapRec cmap;
|
|
|
|
FT_UInt first;
|
|
|
|
FT_UInt count;
|
|
|
|
FT_UShort* indices;
|
2003-09-29 22:33:37 +02:00
|
|
|
|
2002-02-27 22:25:47 +01:00
|
|
|
} T1_CMapCustomRec;
|
|
|
|
|
2002-03-31 13:18:15 +02:00
|
|
|
|
2002-03-28 09:07:16 +01:00
|
|
|
FT_CALLBACK_TABLE const FT_CMap_ClassRec
|
|
|
|
t1_cmap_custom_class_rec;
|
2003-09-29 22:33:37 +02:00
|
|
|
|
2002-03-31 13:18:15 +02:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** TYPE1 SYNTHETIC UNICODE ENCODING CMAP *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
2006-01-11 11:08:49 +01:00
|
|
|
/* unicode (synthetic) cmaps */
|
2002-02-27 22:25:47 +01:00
|
|
|
|
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
|
|
|
|
|
|
|
/* */
|
2002-03-31 13:18:15 +02:00
|
|
|
|
2003-09-29 22:33:37 +02:00
|
|
|
|
2002-02-27 22:25:47 +01:00
|
|
|
FT_END_HEADER
|
|
|
|
|
2016-01-12 21:37:13 +01:00
|
|
|
#endif /* T1CMAP_H_ */
|
2002-03-31 13:18:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|