sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
psft.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * psft.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
43#ifndef PSFT_H_
44#define PSFT_H_
45
46
48#include "pstypes.h"
49
50 /* TODO: disable asserts for now */
51#define CF2_NDEBUG
52
53
54#include <freetype/ftsystem.h>
55
56#include "psglue.h"
57#include <freetype/internal/psaux.h> /* for PS_Decoder */
58
59
60FT_BEGIN_HEADER
61
62
63 FT_LOCAL( FT_Error )
64 cf2_decoder_parse_charstrings( PS_Decoder* decoder,
65 FT_Byte* charstring_base,
66 FT_ULong charstring_len );
67
68 FT_LOCAL( CFF_SubFont )
69 cf2_getSubfont( PS_Decoder* decoder );
70
71 FT_LOCAL( CFF_VStore )
72 cf2_getVStore( PS_Decoder* decoder );
73
74 FT_LOCAL( FT_UInt )
75 cf2_getMaxstack( PS_Decoder* decoder );
76
77#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
78 FT_LOCAL( FT_Error )
79 cf2_getNormalizedVector( PS_Decoder* decoder,
80 CF2_UInt *len,
81 FT_Fixed* *vec );
82#endif
83
84 FT_LOCAL( CF2_Fixed )
85 cf2_getPpemY( PS_Decoder* decoder );
86 FT_LOCAL( CF2_Fixed )
87 cf2_getStdVW( PS_Decoder* decoder );
88 FT_LOCAL( CF2_Fixed )
89 cf2_getStdHW( PS_Decoder* decoder );
90
91 FT_LOCAL( void )
92 cf2_getBlueMetrics( PS_Decoder* decoder,
93 CF2_Fixed* blueScale,
94 CF2_Fixed* blueShift,
95 CF2_Fixed* blueFuzz );
96 FT_LOCAL( void )
97 cf2_getBlueValues( PS_Decoder* decoder,
98 size_t* count,
99 FT_Fixed* *data );
100 FT_LOCAL( void )
101 cf2_getOtherBlues( PS_Decoder* decoder,
102 size_t* count,
103 FT_Fixed* *data );
104 FT_LOCAL( void )
105 cf2_getFamilyBlues( PS_Decoder* decoder,
106 size_t* count,
107 FT_Fixed* *data );
108 FT_LOCAL( void )
109 cf2_getFamilyOtherBlues( PS_Decoder* decoder,
110 size_t* count,
111 FT_Fixed* *data );
112
113 FT_LOCAL( CF2_Int )
114 cf2_getLanguageGroup( PS_Decoder* decoder );
115
116 FT_LOCAL( CF2_Int )
117 cf2_initGlobalRegionBuffer( PS_Decoder* decoder,
118 CF2_Int subrNum,
119 CF2_Buffer buf );
120 FT_LOCAL( FT_Error )
121 cf2_getSeacComponent( PS_Decoder* decoder,
122 CF2_Int code,
123 CF2_Buffer buf );
124 FT_LOCAL( void )
125 cf2_freeSeacComponent( PS_Decoder* decoder,
126 CF2_Buffer buf );
127 FT_LOCAL( CF2_Int )
128 cf2_initLocalRegionBuffer( PS_Decoder* decoder,
129 CF2_Int subrNum,
130 CF2_Buffer buf );
131
132 FT_LOCAL( CF2_Fixed )
133 cf2_getDefaultWidthX( PS_Decoder* decoder );
134 FT_LOCAL( CF2_Fixed )
135 cf2_getNominalWidthX( PS_Decoder* decoder );
136
137
138 FT_LOCAL( FT_Error )
139 cf2_getT1SeacComponent( PS_Decoder* decoder,
140 FT_UInt glyph_index,
141 CF2_Buffer buf );
142 FT_LOCAL( void )
143 cf2_freeT1SeacComponent( PS_Decoder* decoder,
144 CF2_Buffer buf );
145
146 /*
147 * FreeType client outline
148 *
149 * process output from the charstring interpreter
150 */
151 typedef struct CF2_OutlineRec_
152 {
153 CF2_OutlineCallbacksRec root; /* base class must be first */
154 PS_Decoder* decoder;
155
156 } CF2_OutlineRec, *CF2_Outline;
157
158
159 FT_LOCAL( void )
160 cf2_outline_reset( CF2_Outline outline );
161 FT_LOCAL( void )
162 cf2_outline_close( CF2_Outline outline );
163
164
165FT_END_HEADER
166
167
168#endif /* PSFT_H_ */
169
170
171/* END */