summaryrefslogtreecommitdiff
path: root/src/otlayout/otltypes.h
blob: 8244da2829475c6b160c7cd2e2f3d0aa1c9a5fd0 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/***************************************************************************/
/*                                                                         */
/*  otltypes.h                                                             */
/*                                                                         */
/*    Implicit data types of OpenType based layout engine                  */
/*    (For application developers but using implicitly,                    */
/*     specification only).                                                */
/*                                                                         */
/*  Copyright 2003 by                                                      */
/*  Masatake YAMATO and Redhat K.K.                                        */
/*                                                                         */
/*  This file 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.                                        */
/*                                                                         */
/***************************************************************************/

/***************************************************************************/
/* Development of the code in this file is support of                      */
/* Information-technology Promotion Agency, Japan.                         */
/***************************************************************************/

#ifndef __OTLTYPES_H__
#define __OTLTYPES_H__ 

#include <ft2build.h>
#include FT_INTERNAL_TRUETYPE_TYPES_H
#include FT_INTERNAL_FTL_TYPES_H
#include FT_OTLAYOUT_H
#include "ot-ruleset.h"
#include "ot-info.h"

FT_BEGIN_HEADER

  typedef TT_Face OT_Face;

  typedef struct OTL_FontRec_
  {
    FTL_FontRec root;
    OTInfo *    info;
  } OTL_FontRec, *OTL_Font;

  typedef struct OTL_FeaturesRequestRec_
  {
    FTL_FeaturesRequestRec root;
    OTRuleset             *ruleset;
  } OTL_FeaturesRequestRec;

  FT_LOCAL ( FT_Error )
  otl_get_font ( FT_Face face, FTL_Font * font);

  FT_LOCAL_DEF ( FTL_EngineType )
  otl_get_engine_type ( FT_Face face );

  FT_LOCAL ( FT_Error ) 
  otl_new_features_request( FT_Face face, FTL_FeaturesRequest * request);

  FT_LOCAL ( FT_Error ) 
  otl_done_features_request( FTL_FeaturesRequest request);

  FT_LOCAL ( FT_Error ) 
  otl_copy_features_request( FTL_FeaturesRequest from,
			     FTL_FeaturesRequest to);

  FT_LOCAL ( FT_Error )
  otl_substitute_glyphs ( FT_Face face,
			  FTL_FeaturesRequest request,
			  FTL_GlyphArray in,
			  FTL_GlyphArray out );
FT_END_HEADER

#endif /* Not def: __OTLTYPES_H__ */


/* END */