Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
cf2ft.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* cf2ft.h */
4 /* */
5 /* FreeType Glue Component to Adobe's Interpreter (specification). */
6 /* */
7 /* Copyright 2013 Adobe Systems Incorporated. */
8 /* */
9 /* This software, and all works of authorship, whether in source or */
10 /* object code form as indicated by the copyright notice(s) included */
11 /* herein (collectively, the "Work") is made available, and may only be */
12 /* used, modified, and distributed under the FreeType Project License, */
13 /* LICENSE.TXT. Additionally, subject to the terms and conditions of the */
14 /* FreeType Project License, each contributor to the Work hereby grants */
15 /* to any individual or legal entity exercising permissions granted by */
16 /* the FreeType Project License and this section (hereafter, "You" or */
17 /* "Your") a perpetual, worldwide, non-exclusive, no-charge, */
18 /* royalty-free, irrevocable (except as stated in this section) patent */
19 /* license to make, have made, use, offer to sell, sell, import, and */
20 /* otherwise transfer the Work, where such license applies only to those */
21 /* patent claims licensable by such contributor that are necessarily */
22 /* infringed by their contribution(s) alone or by combination of their */
23 /* contribution(s) with the Work to which such contribution(s) was */
24 /* submitted. If You institute patent litigation against any entity */
25 /* (including a cross-claim or counterclaim in a lawsuit) alleging that */
26 /* the Work or a contribution incorporated within the Work constitutes */
27 /* direct or contributory patent infringement, then any patent licenses */
28 /* granted to You under this License for that Work shall terminate as of */
29 /* the date such litigation is filed. */
30 /* */
31 /* By using, modifying, or distributing the Work you indicate that you */
32 /* have read and understood the terms and conditions of the */
33 /* FreeType Project License as well as those provided in this section, */
34 /* and you accept them fully. */
35 /* */
36 /***************************************************************************/
37 
38 
39 #ifndef __CF2FT_H__
40 #define __CF2FT_H__
41 
42 
43 #include "cf2types.h"
44 
45 
46  /* TODO: disable asserts for now */
47 #define CF2_NDEBUG
48 
49 
50 #include FT_SYSTEM_H
51 
52 #include "cf2glue.h"
53 #include "cffgload.h" /* for CFF_Decoder */
54 
55 
57 
58 
61  FT_Byte* charstring_base,
62  FT_ULong charstring_len );
63 
65  cf2_getSubfont( CFF_Decoder* decoder );
66 
67 
69  cf2_getPpemY( CFF_Decoder* decoder );
71  cf2_getStdVW( CFF_Decoder* decoder );
73  cf2_getStdHW( CFF_Decoder* decoder );
74 
75  FT_LOCAL( void )
77  CF2_Fixed* blueScale,
78  CF2_Fixed* blueShift,
79  CF2_Fixed* blueFuzz );
80  FT_LOCAL( void )
82  size_t* count,
83  FT_Pos* *data );
84  FT_LOCAL( void )
86  size_t* count,
87  FT_Pos* *data );
88  FT_LOCAL( void )
90  size_t* count,
91  FT_Pos* *data );
92  FT_LOCAL( void )
94  size_t* count,
95  FT_Pos* *data );
96 
97  FT_LOCAL( CF2_Int )
99 
100  FT_LOCAL( CF2_Int )
102  CF2_UInt idx,
103  CF2_Buffer buf );
104  FT_LOCAL( FT_Error )
106  CF2_UInt code,
107  CF2_Buffer buf );
108  FT_LOCAL( void )
110  CF2_Buffer buf );
111  FT_LOCAL( CF2_Int )
113  CF2_UInt idx,
114  CF2_Buffer buf );
115 
117  cf2_getDefaultWidthX( CFF_Decoder* decoder );
119  cf2_getNominalWidthX( CFF_Decoder* decoder );
120 
121 
122  /*
123  * FreeType client outline
124  *
125  * process output from the charstring interpreter
126  */
127  typedef struct CF2_OutlineRec_
128  {
129  CF2_OutlineCallbacksRec root; /* base class must be first */
131 
133 
134 
135  FT_LOCAL( void )
136  cf2_outline_reset( CF2_Outline outline );
137  FT_LOCAL( void )
138  cf2_outline_close( CF2_Outline outline );
139 
140 
142 
143 
144 #endif /* __CF2FT_H__ */
145 
146 
147 /* END */
FT_BEGIN_HEADER cf2_decoder_parse_charstrings(CFF_Decoder *decoder, FT_Byte *charstring_base, FT_ULong charstring_len)
Definition: cf2ft.c:267
#define CF2_Int
Definition: cf2types.h:65
cf2_outline_close(CF2_Outline outline)
Definition: cf2ft.c:624
int FT_Error
Definition: fttypes.h:296
unsigned long FT_ULong
Definition: fttypes.h:249
cf2_getBlueValues(CFF_Decoder *decoder, size_t *count, FT_Pos **data)
Definition: cf2ft.c:433
FT_BEGIN_HEADER typedef signed long FT_Pos
Definition: ftimage.h:59
#define FT_END_HEADER
Definition: ftheader.h:54
cf2_getSeacComponent(CFF_Decoder *decoder, CF2_UInt code, CF2_Buffer buf)
Definition: cf2ft.c:519
cf2_initLocalRegionBuffer(CFF_Decoder *decoder, CF2_UInt idx, CF2_Buffer buf)
Definition: cf2ft.c:569
CF2_OutlineCallbacksRec root
Definition: cf2ft.h:129
struct CF2_OutlineRec_ * CF2_Outline
GLenum GLuint GLenum GLsizei const GLchar * buf
unsigned char FT_Byte
Definition: fttypes.h:150
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
cf2_getOtherBlues(CFF_Decoder *decoder, size_t *count, FT_Pos **data)
Definition: cf2ft.c:446
#define FT_LOCAL(x)
Definition: ftconfig.h:235
FT_UInt idx
Definition: cffcmap.c:127
GLsizei GLsizei GLenum GLenum const GLvoid * data
#define CF2_Fixed
Definition: cf2fixed.h:48
cf2_getBlueMetrics(CFF_Decoder *decoder, CF2_Fixed *blueScale, CF2_Fixed *blueShift, CF2_Fixed *blueFuzz)
Definition: cf2ft.c:413
cf2_outline_reset(CF2_Outline outline)
Definition: cf2ft.c:610
struct CF2_OutlineRec_ CF2_OutlineRec
cf2_getFamilyBlues(CFF_Decoder *decoder, size_t *count, FT_Pos **data)
Definition: cf2ft.c:459
cf2_getPpemY(CFF_Decoder *decoder)
Definition: cf2ft.c:376
cf2_getDefaultWidthX(CFF_Decoder *decoder)
Definition: cf2ft.c:590
#define CF2_UInt
Definition: cf2types.h:64
cf2_initGlobalRegionBuffer(CFF_Decoder *decoder, CF2_UInt idx, CF2_Buffer buf)
Definition: cf2ft.c:496
Definition: inftree9.h:24
cf2_getStdHW(CFF_Decoder *decoder)
Definition: cf2ft.c:402
cf2_getStdVW(CFF_Decoder *decoder)
Definition: cf2ft.c:392
cf2_getNominalWidthX(CFF_Decoder *decoder)
Definition: cf2ft.c:600
CFF_Decoder * decoder
Definition: cf2ft.h:130
cf2_freeSeacComponent(CFF_Decoder *decoder, CF2_Buffer buf)
Definition: cf2ft.c:557
GLuint GLuint GLsizei count
cf2_getSubfont(CFF_Decoder *decoder)
Definition: cf2ft.c:366
cf2_getLanguageGroup(CFF_Decoder *decoder)
Definition: cf2ft.c:485
FT_BEGIN_HEADER struct CF2_BufferRec_ * CF2_Buffer
cf2_getFamilyOtherBlues(CFF_Decoder *decoder, size_t *count, FT_Pos **data)
Definition: cf2ft.c:472