cffcmap.h revision 049d6fea481044fcc000e7782e5bc7046fc70844
1/***************************************************************************/
2/*                                                                         */
3/*  cffcmap.h                                                              */
4/*                                                                         */
5/*    CFF character mapping table (cmap) support (specification).          */
6/*                                                                         */
7/*  Copyright 2002, 2003, 2006 by                                          */
8/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
9/*                                                                         */
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      */
12/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
13/*  this file you indicate that you have read the license and              */
14/*  understand and accept it fully.                                        */
15/*                                                                         */
16/***************************************************************************/
17
18
19#ifndef __CFFCMAP_H__
20#define __CFFCMAP_H__
21
22#include "cffobjs.h"
23
24FT_BEGIN_HEADER
25
26
27  /*************************************************************************/
28  /*************************************************************************/
29  /*****                                                               *****/
30  /*****          TYPE1 STANDARD (AND EXPERT) ENCODING CMAPS           *****/
31  /*****                                                               *****/
32  /*************************************************************************/
33  /*************************************************************************/
34
35  /* standard (and expert) encoding cmaps */
36  typedef struct CFF_CMapStdRec_*  CFF_CMapStd;
37
38  typedef struct  CFF_CMapStdRec_
39  {
40    FT_CMapRec  cmap;
41    FT_UShort*  gids;   /* up to 256 elements */
42
43  } CFF_CMapStdRec;
44
45
46  FT_CALLBACK_TABLE const FT_CMap_ClassRec
47  cff_cmap_encoding_class_rec;
48
49
50  /*************************************************************************/
51  /*************************************************************************/
52  /*****                                                               *****/
53  /*****               CFF SYNTHETIC UNICODE ENCODING CMAP             *****/
54  /*****                                                               *****/
55  /*************************************************************************/
56  /*************************************************************************/
57
58  /* unicode (synthetic) cmaps */
59
60  FT_CALLBACK_TABLE const FT_CMap_ClassRec
61  cff_cmap_unicode_class_rec;
62
63
64FT_END_HEADER
65
66#endif /* __CFFCMAP_H__ */
67
68
69/* END */
70