summaryrefslogtreecommitdiff
path: root/Build/source/libs/libttf/extend/ftxcmap.h
blob: 38ed8e1d337cb5ed62a8707df3dd8945ab295e17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*******************************************************************
 *
 *  ftxcmap.h                                                   1.0
 *
 *    API extension for iterating over Cmaps
 *
 *  Copyright 1996-1999 by Juliusz Chroboczek,
 *  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.
 *
 *
 ******************************************************************/

#ifndef FTXCMAP_H
#define FTXCMAP_H

#include "freetype.h"

#ifdef __cplusplus
extern "C" {
#endif

  /* Find the first entry of a Cmap.  Its glyph index is returned   */
  /* in the "id" field, while the function returns the first valid  */
  /* character code in the Cmap.  It returns -1 in case of failure. */

  EXPORT_DEF
  TT_Long  TT_CharMap_First( TT_CharMap  charMap,
                             TT_UShort*  id );


  /* Find the next entry of Cmap.  Same return conventions. */

  EXPORT_DEF
  TT_Long  TT_CharMap_Next( TT_CharMap  charMap,
                            TT_UShort   startId,
                            TT_UShort*  id );

  /* Find the last entry of a Cmap.  Its glyph index is returned   */
  /* in the "id" field, while the function returns the last valid  */
  /* character code in the Cmap.  It returns -1 in case of failure. */

  EXPORT_DEF
  TT_Long  TT_CharMap_Last( TT_CharMap  charMap,
                            TT_UShort*  id );


#ifdef __cplusplus
}
#endif

#endif /* FTXCMAP_H */


/* END */