jassub 1.7.13 → 1.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/dist/js/jassub-worker-modern.js +0 -128
- package/dist/js/jassub-worker-modern.wasm +0 -0
- package/dist/js/jassub-worker.js +0 -128
- package/dist/js/jassub-worker.wasm +0 -0
- package/dist/js/jassub-worker.wasm.js +0 -84
- package/dist/js/jassub.js +0 -832
- package/dist/libraries/bin/brotli.js +0 -1
- package/dist/libraries/include/ass/ass.h +0 -812
- package/dist/libraries/include/ass/ass_types.h +0 -292
- package/dist/libraries/include/brotli/decode.h +0 -344
- package/dist/libraries/include/brotli/encode.h +0 -448
- package/dist/libraries/include/brotli/port.h +0 -288
- package/dist/libraries/include/brotli/types.h +0 -83
- package/dist/libraries/include/expat.h +0 -1064
- package/dist/libraries/include/expat_config.h +0 -115
- package/dist/libraries/include/expat_external.h +0 -165
- package/dist/libraries/include/fontconfig/fcfreetype.h +0 -59
- package/dist/libraries/include/fontconfig/fcprivate.h +0 -134
- package/dist/libraries/include/fontconfig/fontconfig.h +0 -1154
- package/dist/libraries/include/freetype2/freetype/config/ftconfig.h +0 -63
- package/dist/libraries/include/freetype2/freetype/config/ftheader.h +0 -824
- package/dist/libraries/include/freetype2/freetype/config/ftmodule.h +0 -20
- package/dist/libraries/include/freetype2/freetype/config/ftoption.h +0 -1011
- package/dist/libraries/include/freetype2/freetype/config/ftstdlib.h +0 -175
- package/dist/libraries/include/freetype2/freetype/config/integer-types.h +0 -245
- package/dist/libraries/include/freetype2/freetype/config/mac-support.h +0 -49
- package/dist/libraries/include/freetype2/freetype/config/public-macros.h +0 -120
- package/dist/libraries/include/freetype2/freetype/freetype.h +0 -4833
- package/dist/libraries/include/freetype2/freetype/ftadvanc.h +0 -188
- package/dist/libraries/include/freetype2/freetype/ftbbox.h +0 -101
- package/dist/libraries/include/freetype2/freetype/ftbdf.h +0 -212
- package/dist/libraries/include/freetype2/freetype/ftbitmap.h +0 -329
- package/dist/libraries/include/freetype2/freetype/ftbzip2.h +0 -102
- package/dist/libraries/include/freetype2/freetype/ftcache.h +0 -1087
- package/dist/libraries/include/freetype2/freetype/ftchapters.h +0 -147
- package/dist/libraries/include/freetype2/freetype/ftcid.h +0 -167
- package/dist/libraries/include/freetype2/freetype/ftcolor.h +0 -1609
- package/dist/libraries/include/freetype2/freetype/ftdriver.h +0 -1193
- package/dist/libraries/include/freetype2/freetype/fterrdef.h +0 -279
- package/dist/libraries/include/freetype2/freetype/fterrors.h +0 -296
- package/dist/libraries/include/freetype2/freetype/ftfntfmt.h +0 -93
- package/dist/libraries/include/freetype2/freetype/ftgasp.h +0 -143
- package/dist/libraries/include/freetype2/freetype/ftglyph.h +0 -664
- package/dist/libraries/include/freetype2/freetype/ftgxval.h +0 -354
- package/dist/libraries/include/freetype2/freetype/ftgzip.h +0 -151
- package/dist/libraries/include/freetype2/freetype/ftimage.h +0 -1276
- package/dist/libraries/include/freetype2/freetype/ftincrem.h +0 -348
- package/dist/libraries/include/freetype2/freetype/ftlcdfil.h +0 -323
- package/dist/libraries/include/freetype2/freetype/ftlist.h +0 -296
- package/dist/libraries/include/freetype2/freetype/ftlogging.h +0 -184
- package/dist/libraries/include/freetype2/freetype/ftlzw.h +0 -100
- package/dist/libraries/include/freetype2/freetype/ftmac.h +0 -289
- package/dist/libraries/include/freetype2/freetype/ftmm.h +0 -752
- package/dist/libraries/include/freetype2/freetype/ftmodapi.h +0 -806
- package/dist/libraries/include/freetype2/freetype/ftmoderr.h +0 -204
- package/dist/libraries/include/freetype2/freetype/ftotval.h +0 -206
- package/dist/libraries/include/freetype2/freetype/ftoutln.h +0 -586
- package/dist/libraries/include/freetype2/freetype/ftparams.h +0 -203
- package/dist/libraries/include/freetype2/freetype/ftpfr.h +0 -179
- package/dist/libraries/include/freetype2/freetype/ftrender.h +0 -244
- package/dist/libraries/include/freetype2/freetype/ftsizes.h +0 -159
- package/dist/libraries/include/freetype2/freetype/ftsnames.h +0 -272
- package/dist/libraries/include/freetype2/freetype/ftstroke.h +0 -773
- package/dist/libraries/include/freetype2/freetype/ftsynth.h +0 -83
- package/dist/libraries/include/freetype2/freetype/ftsystem.h +0 -352
- package/dist/libraries/include/freetype2/freetype/fttrigon.h +0 -350
- package/dist/libraries/include/freetype2/freetype/fttypes.h +0 -615
- package/dist/libraries/include/freetype2/freetype/ftwinfnt.h +0 -276
- package/dist/libraries/include/freetype2/freetype/t1tables.h +0 -773
- package/dist/libraries/include/freetype2/freetype/ttnameid.h +0 -1235
- package/dist/libraries/include/freetype2/freetype/tttables.h +0 -855
- package/dist/libraries/include/freetype2/freetype/tttags.h +0 -123
- package/dist/libraries/include/freetype2/ft2build.h +0 -42
- package/dist/libraries/include/fribidi/fribidi-arabic.h +0 -81
- package/dist/libraries/include/fribidi/fribidi-begindecls.h +0 -3
- package/dist/libraries/include/fribidi/fribidi-bidi-types-list.h +0 -96
- package/dist/libraries/include/fribidi/fribidi-bidi-types.h +0 -405
- package/dist/libraries/include/fribidi/fribidi-bidi.h +0 -142
- package/dist/libraries/include/fribidi/fribidi-brackets.h +0 -89
- package/dist/libraries/include/fribidi/fribidi-char-sets-list.h +0 -54
- package/dist/libraries/include/fribidi/fribidi-char-sets.h +0 -106
- package/dist/libraries/include/fribidi/fribidi-common.h +0 -158
- package/dist/libraries/include/fribidi/fribidi-config.h +0 -23
- package/dist/libraries/include/fribidi/fribidi-deprecated.h +0 -175
- package/dist/libraries/include/fribidi/fribidi-enddecls.h +0 -3
- package/dist/libraries/include/fribidi/fribidi-flags.h +0 -72
- package/dist/libraries/include/fribidi/fribidi-joining-types-list.h +0 -44
- package/dist/libraries/include/fribidi/fribidi-joining-types.h +0 -249
- package/dist/libraries/include/fribidi/fribidi-joining.h +0 -74
- package/dist/libraries/include/fribidi/fribidi-mirroring.h +0 -86
- package/dist/libraries/include/fribidi/fribidi-shape.h +0 -71
- package/dist/libraries/include/fribidi/fribidi-types.h +0 -79
- package/dist/libraries/include/fribidi/fribidi-unicode-version.h +0 -10
- package/dist/libraries/include/fribidi/fribidi-unicode.h +0 -105
- package/dist/libraries/include/fribidi/fribidi.h +0 -129
- package/dist/libraries/include/harfbuzz/hb-aat-layout.h +0 -795
- package/dist/libraries/include/harfbuzz/hb-aat.h +0 -38
- package/dist/libraries/include/harfbuzz/hb-blob.h +0 -160
- package/dist/libraries/include/harfbuzz/hb-buffer.h +0 -799
- package/dist/libraries/include/harfbuzz/hb-common.h +0 -902
- package/dist/libraries/include/harfbuzz/hb-cplusplus.hh +0 -221
- package/dist/libraries/include/harfbuzz/hb-deprecated.h +0 -251
- package/dist/libraries/include/harfbuzz/hb-draw.h +0 -325
- package/dist/libraries/include/harfbuzz/hb-face.h +0 -181
- package/dist/libraries/include/harfbuzz/hb-font.h +0 -1108
- package/dist/libraries/include/harfbuzz/hb-ft.h +0 -145
- package/dist/libraries/include/harfbuzz/hb-map.h +0 -124
- package/dist/libraries/include/harfbuzz/hb-ot-color.h +0 -146
- package/dist/libraries/include/harfbuzz/hb-ot-deprecated.h +0 -141
- package/dist/libraries/include/harfbuzz/hb-ot-font.h +0 -45
- package/dist/libraries/include/harfbuzz/hb-ot-layout.h +0 -503
- package/dist/libraries/include/harfbuzz/hb-ot-math.h +0 -333
- package/dist/libraries/include/harfbuzz/hb-ot-meta.h +0 -72
- package/dist/libraries/include/harfbuzz/hb-ot-metrics.h +0 -129
- package/dist/libraries/include/harfbuzz/hb-ot-name.h +0 -158
- package/dist/libraries/include/harfbuzz/hb-ot-shape.h +0 -53
- package/dist/libraries/include/harfbuzz/hb-ot-var.h +0 -191
- package/dist/libraries/include/harfbuzz/hb-ot.h +0 -49
- package/dist/libraries/include/harfbuzz/hb-set.h +0 -200
- package/dist/libraries/include/harfbuzz/hb-shape-plan.h +0 -122
- package/dist/libraries/include/harfbuzz/hb-shape.h +0 -62
- package/dist/libraries/include/harfbuzz/hb-style.h +0 -81
- package/dist/libraries/include/harfbuzz/hb-subset-repacker.h +0 -81
- package/dist/libraries/include/harfbuzz/hb-subset.h +0 -234
- package/dist/libraries/include/harfbuzz/hb-unicode.h +0 -643
- package/dist/libraries/include/harfbuzz/hb-version.h +0 -95
- package/dist/libraries/include/harfbuzz/hb.h +0 -50
- package/dist/libraries/lib/cmake/expat-2.4.7/expat-config-version.cmake +0 -70
- package/dist/libraries/lib/cmake/expat-2.4.7/expat-config.cmake +0 -99
- package/dist/libraries/lib/cmake/expat-2.4.7/expat-noconfig.cmake +0 -19
- package/dist/libraries/lib/cmake/expat-2.4.7/expat.cmake +0 -99
- package/dist/libraries/lib/libass.a +0 -0
- package/dist/libraries/lib/libass.la +0 -41
- package/dist/libraries/lib/libbrotlicommon.a +0 -0
- package/dist/libraries/lib/libbrotlidec.a +0 -0
- package/dist/libraries/lib/libbrotlienc.a +0 -0
- package/dist/libraries/lib/libexpat.a +0 -0
- package/dist/libraries/lib/libfontconfig.a +0 -0
- package/dist/libraries/lib/libfontconfig.la +0 -41
- package/dist/libraries/lib/libfreetype.a +0 -0
- package/dist/libraries/lib/libfreetype.la +0 -41
- package/dist/libraries/lib/libfribidi.a +0 -0
- package/dist/libraries/lib/libfribidi.la +0 -41
- package/dist/libraries/lib/libharfbuzz-subset.a +0 -0
- package/dist/libraries/lib/libharfbuzz-subset.la +0 -41
- package/dist/libraries/lib/libharfbuzz.a +0 -0
- package/dist/libraries/lib/libharfbuzz.la +0 -41
- package/dist/libraries/lib/pkgconfig/expat.pc +0 -11
- package/dist/libraries/lib/pkgconfig/fontconfig.pc +0 -18
- package/dist/libraries/lib/pkgconfig/freetype2.pc +0 -14
- package/dist/libraries/lib/pkgconfig/fribidi.pc +0 -13
- package/dist/libraries/lib/pkgconfig/harfbuzz-subset.pc +0 -12
- package/dist/libraries/lib/pkgconfig/harfbuzz.pc +0 -13
- package/dist/libraries/lib/pkgconfig/libass.pc +0 -13
- package/dist/libraries/lib/pkgconfig/libbrotlicommon.pc +0 -11
- package/dist/libraries/lib/pkgconfig/libbrotlidec.pc +0 -12
- package/dist/libraries/lib/pkgconfig/libbrotlienc.pc +0 -12
- package/dist/libraries/share/aclocal/freetype2.m4 +0 -194
- package/dist/libraries/share/doc/expat/AUTHORS +0 -10
- package/dist/libraries/share/doc/expat/changelog +0 -1161
- package/dist/license/all +0 -951
- package/dist/license/all.tmp +0 -307
- package/dist/license/brotli +0 -12
- package/dist/license/expat +0 -71
- package/dist/license/fontconfig +0 -46
- package/dist/license/freetype +0 -92
- package/dist/license/fribidi +0 -15
- package/dist/license/harfbuzz +0 -32
- package/dist/license/jassub +0 -0
- package/dist/license/libass +0 -28
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
/****************************************************************************
|
|
2
|
-
*
|
|
3
|
-
* ftlist.h
|
|
4
|
-
*
|
|
5
|
-
* Generic list support for FreeType (specification).
|
|
6
|
-
*
|
|
7
|
-
* Copyright (C) 1996-2021 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
|
-
/**************************************************************************
|
|
20
|
-
*
|
|
21
|
-
* This file implements functions relative to list processing. Its data
|
|
22
|
-
* structures are defined in `freetype.h`.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
#ifndef FTLIST_H_
|
|
28
|
-
#define FTLIST_H_
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
#include <freetype/freetype.h>
|
|
32
|
-
|
|
33
|
-
#ifdef FREETYPE_H
|
|
34
|
-
#error "freetype.h of FreeType 1 has been loaded!"
|
|
35
|
-
#error "Please fix the directory search order for header files"
|
|
36
|
-
#error "so that freetype.h of FreeType 2 is found first."
|
|
37
|
-
#endif
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
FT_BEGIN_HEADER
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/**************************************************************************
|
|
44
|
-
*
|
|
45
|
-
* @section:
|
|
46
|
-
* list_processing
|
|
47
|
-
*
|
|
48
|
-
* @title:
|
|
49
|
-
* List Processing
|
|
50
|
-
*
|
|
51
|
-
* @abstract:
|
|
52
|
-
* Simple management of lists.
|
|
53
|
-
*
|
|
54
|
-
* @description:
|
|
55
|
-
* This section contains various definitions related to list processing
|
|
56
|
-
* using doubly-linked nodes.
|
|
57
|
-
*
|
|
58
|
-
* @order:
|
|
59
|
-
* FT_List
|
|
60
|
-
* FT_ListNode
|
|
61
|
-
* FT_ListRec
|
|
62
|
-
* FT_ListNodeRec
|
|
63
|
-
*
|
|
64
|
-
* FT_List_Add
|
|
65
|
-
* FT_List_Insert
|
|
66
|
-
* FT_List_Find
|
|
67
|
-
* FT_List_Remove
|
|
68
|
-
* FT_List_Up
|
|
69
|
-
* FT_List_Iterate
|
|
70
|
-
* FT_List_Iterator
|
|
71
|
-
* FT_List_Finalize
|
|
72
|
-
* FT_List_Destructor
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/**************************************************************************
|
|
78
|
-
*
|
|
79
|
-
* @function:
|
|
80
|
-
* FT_List_Find
|
|
81
|
-
*
|
|
82
|
-
* @description:
|
|
83
|
-
* Find the list node for a given listed object.
|
|
84
|
-
*
|
|
85
|
-
* @input:
|
|
86
|
-
* list ::
|
|
87
|
-
* A pointer to the parent list.
|
|
88
|
-
* data ::
|
|
89
|
-
* The address of the listed object.
|
|
90
|
-
*
|
|
91
|
-
* @return:
|
|
92
|
-
* List node. `NULL` if it wasn't found.
|
|
93
|
-
*/
|
|
94
|
-
FT_EXPORT( FT_ListNode )
|
|
95
|
-
FT_List_Find( FT_List list,
|
|
96
|
-
void* data );
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/**************************************************************************
|
|
100
|
-
*
|
|
101
|
-
* @function:
|
|
102
|
-
* FT_List_Add
|
|
103
|
-
*
|
|
104
|
-
* @description:
|
|
105
|
-
* Append an element to the end of a list.
|
|
106
|
-
*
|
|
107
|
-
* @inout:
|
|
108
|
-
* list ::
|
|
109
|
-
* A pointer to the parent list.
|
|
110
|
-
* node ::
|
|
111
|
-
* The node to append.
|
|
112
|
-
*/
|
|
113
|
-
FT_EXPORT( void )
|
|
114
|
-
FT_List_Add( FT_List list,
|
|
115
|
-
FT_ListNode node );
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
/**************************************************************************
|
|
119
|
-
*
|
|
120
|
-
* @function:
|
|
121
|
-
* FT_List_Insert
|
|
122
|
-
*
|
|
123
|
-
* @description:
|
|
124
|
-
* Insert an element at the head of a list.
|
|
125
|
-
*
|
|
126
|
-
* @inout:
|
|
127
|
-
* list ::
|
|
128
|
-
* A pointer to parent list.
|
|
129
|
-
* node ::
|
|
130
|
-
* The node to insert.
|
|
131
|
-
*/
|
|
132
|
-
FT_EXPORT( void )
|
|
133
|
-
FT_List_Insert( FT_List list,
|
|
134
|
-
FT_ListNode node );
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
/**************************************************************************
|
|
138
|
-
*
|
|
139
|
-
* @function:
|
|
140
|
-
* FT_List_Remove
|
|
141
|
-
*
|
|
142
|
-
* @description:
|
|
143
|
-
* Remove a node from a list. This function doesn't check whether the
|
|
144
|
-
* node is in the list!
|
|
145
|
-
*
|
|
146
|
-
* @input:
|
|
147
|
-
* node ::
|
|
148
|
-
* The node to remove.
|
|
149
|
-
*
|
|
150
|
-
* @inout:
|
|
151
|
-
* list ::
|
|
152
|
-
* A pointer to the parent list.
|
|
153
|
-
*/
|
|
154
|
-
FT_EXPORT( void )
|
|
155
|
-
FT_List_Remove( FT_List list,
|
|
156
|
-
FT_ListNode node );
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
/**************************************************************************
|
|
160
|
-
*
|
|
161
|
-
* @function:
|
|
162
|
-
* FT_List_Up
|
|
163
|
-
*
|
|
164
|
-
* @description:
|
|
165
|
-
* Move a node to the head/top of a list. Used to maintain LRU lists.
|
|
166
|
-
*
|
|
167
|
-
* @inout:
|
|
168
|
-
* list ::
|
|
169
|
-
* A pointer to the parent list.
|
|
170
|
-
* node ::
|
|
171
|
-
* The node to move.
|
|
172
|
-
*/
|
|
173
|
-
FT_EXPORT( void )
|
|
174
|
-
FT_List_Up( FT_List list,
|
|
175
|
-
FT_ListNode node );
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
/**************************************************************************
|
|
179
|
-
*
|
|
180
|
-
* @functype:
|
|
181
|
-
* FT_List_Iterator
|
|
182
|
-
*
|
|
183
|
-
* @description:
|
|
184
|
-
* An FT_List iterator function that is called during a list parse by
|
|
185
|
-
* @FT_List_Iterate.
|
|
186
|
-
*
|
|
187
|
-
* @input:
|
|
188
|
-
* node ::
|
|
189
|
-
* The current iteration list node.
|
|
190
|
-
*
|
|
191
|
-
* user ::
|
|
192
|
-
* A typeless pointer passed to @FT_List_Iterate. Can be used to point
|
|
193
|
-
* to the iteration's state.
|
|
194
|
-
*/
|
|
195
|
-
typedef FT_Error
|
|
196
|
-
(*FT_List_Iterator)( FT_ListNode node,
|
|
197
|
-
void* user );
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
/**************************************************************************
|
|
201
|
-
*
|
|
202
|
-
* @function:
|
|
203
|
-
* FT_List_Iterate
|
|
204
|
-
*
|
|
205
|
-
* @description:
|
|
206
|
-
* Parse a list and calls a given iterator function on each element.
|
|
207
|
-
* Note that parsing is stopped as soon as one of the iterator calls
|
|
208
|
-
* returns a non-zero value.
|
|
209
|
-
*
|
|
210
|
-
* @input:
|
|
211
|
-
* list ::
|
|
212
|
-
* A handle to the list.
|
|
213
|
-
* iterator ::
|
|
214
|
-
* An iterator function, called on each node of the list.
|
|
215
|
-
* user ::
|
|
216
|
-
* A user-supplied field that is passed as the second argument to the
|
|
217
|
-
* iterator.
|
|
218
|
-
*
|
|
219
|
-
* @return:
|
|
220
|
-
* The result (a FreeType error code) of the last iterator call.
|
|
221
|
-
*/
|
|
222
|
-
FT_EXPORT( FT_Error )
|
|
223
|
-
FT_List_Iterate( FT_List list,
|
|
224
|
-
FT_List_Iterator iterator,
|
|
225
|
-
void* user );
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/**************************************************************************
|
|
229
|
-
*
|
|
230
|
-
* @functype:
|
|
231
|
-
* FT_List_Destructor
|
|
232
|
-
*
|
|
233
|
-
* @description:
|
|
234
|
-
* An @FT_List iterator function that is called during a list
|
|
235
|
-
* finalization by @FT_List_Finalize to destroy all elements in a given
|
|
236
|
-
* list.
|
|
237
|
-
*
|
|
238
|
-
* @input:
|
|
239
|
-
* system ::
|
|
240
|
-
* The current system object.
|
|
241
|
-
*
|
|
242
|
-
* data ::
|
|
243
|
-
* The current object to destroy.
|
|
244
|
-
*
|
|
245
|
-
* user ::
|
|
246
|
-
* A typeless pointer passed to @FT_List_Iterate. It can be used to
|
|
247
|
-
* point to the iteration's state.
|
|
248
|
-
*/
|
|
249
|
-
typedef void
|
|
250
|
-
(*FT_List_Destructor)( FT_Memory memory,
|
|
251
|
-
void* data,
|
|
252
|
-
void* user );
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
/**************************************************************************
|
|
256
|
-
*
|
|
257
|
-
* @function:
|
|
258
|
-
* FT_List_Finalize
|
|
259
|
-
*
|
|
260
|
-
* @description:
|
|
261
|
-
* Destroy all elements in the list as well as the list itself.
|
|
262
|
-
*
|
|
263
|
-
* @input:
|
|
264
|
-
* list ::
|
|
265
|
-
* A handle to the list.
|
|
266
|
-
*
|
|
267
|
-
* destroy ::
|
|
268
|
-
* A list destructor that will be applied to each element of the list.
|
|
269
|
-
* Set this to `NULL` if not needed.
|
|
270
|
-
*
|
|
271
|
-
* memory ::
|
|
272
|
-
* The current memory object that handles deallocation.
|
|
273
|
-
*
|
|
274
|
-
* user ::
|
|
275
|
-
* A user-supplied field that is passed as the last argument to the
|
|
276
|
-
* destructor.
|
|
277
|
-
*
|
|
278
|
-
* @note:
|
|
279
|
-
* This function expects that all nodes added by @FT_List_Add or
|
|
280
|
-
* @FT_List_Insert have been dynamically allocated.
|
|
281
|
-
*/
|
|
282
|
-
FT_EXPORT( void )
|
|
283
|
-
FT_List_Finalize( FT_List list,
|
|
284
|
-
FT_List_Destructor destroy,
|
|
285
|
-
FT_Memory memory,
|
|
286
|
-
void* user );
|
|
287
|
-
|
|
288
|
-
/* */
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
FT_END_HEADER
|
|
292
|
-
|
|
293
|
-
#endif /* FTLIST_H_ */
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
/* END */
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
/****************************************************************************
|
|
2
|
-
*
|
|
3
|
-
* ftlogging.h
|
|
4
|
-
*
|
|
5
|
-
* Additional debugging APIs.
|
|
6
|
-
*
|
|
7
|
-
* Copyright (C) 2020-2021 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 FTLOGGING_H_
|
|
20
|
-
#define FTLOGGING_H_
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
#include <ft2build.h>
|
|
24
|
-
#include FT_CONFIG_CONFIG_H
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
FT_BEGIN_HEADER
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/**************************************************************************
|
|
31
|
-
*
|
|
32
|
-
* @section:
|
|
33
|
-
* debugging_apis
|
|
34
|
-
*
|
|
35
|
-
* @title:
|
|
36
|
-
* External Debugging APIs
|
|
37
|
-
*
|
|
38
|
-
* @abstract:
|
|
39
|
-
* Public APIs to control the `FT_DEBUG_LOGGING` macro.
|
|
40
|
-
*
|
|
41
|
-
* @description:
|
|
42
|
-
* This section contains the declarations of public functions that
|
|
43
|
-
* enables fine control of what the `FT_DEBUG_LOGGING` macro outputs.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/**************************************************************************
|
|
49
|
-
*
|
|
50
|
-
* @function:
|
|
51
|
-
* FT_Trace_Set_Level
|
|
52
|
-
*
|
|
53
|
-
* @description:
|
|
54
|
-
* Change the levels of tracing components of FreeType at run time.
|
|
55
|
-
*
|
|
56
|
-
* @input:
|
|
57
|
-
* tracing_level ::
|
|
58
|
-
* New tracing value.
|
|
59
|
-
*
|
|
60
|
-
* @example:
|
|
61
|
-
* The following call makes FreeType trace everything but the 'memory'
|
|
62
|
-
* component.
|
|
63
|
-
*
|
|
64
|
-
* ```
|
|
65
|
-
* FT_Trace_Set_Level( "any:7 memory:0 );
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* @note:
|
|
69
|
-
* This function does nothing if compilation option `FT_DEBUG_LOGGING`
|
|
70
|
-
* isn't set.
|
|
71
|
-
*
|
|
72
|
-
* @since:
|
|
73
|
-
* 2.11
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
|
-
FT_EXPORT( void )
|
|
77
|
-
FT_Trace_Set_Level( const char* tracing_level );
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
/**************************************************************************
|
|
81
|
-
*
|
|
82
|
-
* @function:
|
|
83
|
-
* FT_Trace_Set_Default_Level
|
|
84
|
-
*
|
|
85
|
-
* @description:
|
|
86
|
-
* Reset tracing value of FreeType's components to the default value
|
|
87
|
-
* (i.e., to the value of the `FT2_DEBUG` environment value or to NULL
|
|
88
|
-
* if `FT2_DEBUG` is not set).
|
|
89
|
-
*
|
|
90
|
-
* @note:
|
|
91
|
-
* This function does nothing if compilation option `FT_DEBUG_LOGGING`
|
|
92
|
-
* isn't set.
|
|
93
|
-
*
|
|
94
|
-
* @since:
|
|
95
|
-
* 2.11
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
FT_EXPORT( void )
|
|
99
|
-
FT_Trace_Set_Default_Level( void );
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
/**************************************************************************
|
|
103
|
-
*
|
|
104
|
-
* @functype:
|
|
105
|
-
* FT_Custom_Log_Handler
|
|
106
|
-
*
|
|
107
|
-
* @description:
|
|
108
|
-
* A function typedef that is used to handle the logging of tracing and
|
|
109
|
-
* debug messages on a file system.
|
|
110
|
-
*
|
|
111
|
-
* @input:
|
|
112
|
-
* ft_component ::
|
|
113
|
-
* The name of `FT_COMPONENT` from which the current debug or error
|
|
114
|
-
* message is produced.
|
|
115
|
-
*
|
|
116
|
-
* fmt ::
|
|
117
|
-
* Actual debug or tracing message.
|
|
118
|
-
*
|
|
119
|
-
* args::
|
|
120
|
-
* Arguments of debug or tracing messages.
|
|
121
|
-
*
|
|
122
|
-
* @since:
|
|
123
|
-
* 2.11
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
typedef void
|
|
127
|
-
(*FT_Custom_Log_Handler)( const char* ft_component,
|
|
128
|
-
const char* fmt,
|
|
129
|
-
va_list args );
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/**************************************************************************
|
|
133
|
-
*
|
|
134
|
-
* @function:
|
|
135
|
-
* FT_Set_Log_Handler
|
|
136
|
-
*
|
|
137
|
-
* @description:
|
|
138
|
-
* A function to set a custom log handler.
|
|
139
|
-
*
|
|
140
|
-
* @input:
|
|
141
|
-
* handler ::
|
|
142
|
-
* New logging function.
|
|
143
|
-
*
|
|
144
|
-
* @note:
|
|
145
|
-
* This function does nothing if compilation option `FT_DEBUG_LOGGING`
|
|
146
|
-
* isn't set.
|
|
147
|
-
*
|
|
148
|
-
* @since:
|
|
149
|
-
* 2.11
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
|
-
FT_EXPORT( void )
|
|
153
|
-
FT_Set_Log_Handler( FT_Custom_Log_Handler handler );
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/**************************************************************************
|
|
157
|
-
*
|
|
158
|
-
* @function:
|
|
159
|
-
* FT_Set_Default_Log_Handler
|
|
160
|
-
*
|
|
161
|
-
* @description:
|
|
162
|
-
* A function to undo the effect of @FT_Set_Log_Handler, resetting the
|
|
163
|
-
* log handler to FreeType's built-in version.
|
|
164
|
-
*
|
|
165
|
-
* @note:
|
|
166
|
-
* This function does nothing if compilation option `FT_DEBUG_LOGGING`
|
|
167
|
-
* isn't set.
|
|
168
|
-
*
|
|
169
|
-
* @since:
|
|
170
|
-
* 2.11
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
173
|
-
FT_EXPORT( void )
|
|
174
|
-
FT_Set_Default_Log_Handler( void );
|
|
175
|
-
|
|
176
|
-
/* */
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
FT_END_HEADER
|
|
180
|
-
|
|
181
|
-
#endif /* FTLOGGING_H_ */
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
/* END */
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/****************************************************************************
|
|
2
|
-
*
|
|
3
|
-
* ftlzw.h
|
|
4
|
-
*
|
|
5
|
-
* LZW-compressed stream support.
|
|
6
|
-
*
|
|
7
|
-
* Copyright (C) 2004-2021 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 FTLZW_H_
|
|
20
|
-
#define FTLZW_H_
|
|
21
|
-
|
|
22
|
-
#include <freetype/freetype.h>
|
|
23
|
-
|
|
24
|
-
#ifdef FREETYPE_H
|
|
25
|
-
#error "freetype.h of FreeType 1 has been loaded!"
|
|
26
|
-
#error "Please fix the directory search order for header files"
|
|
27
|
-
#error "so that freetype.h of FreeType 2 is found first."
|
|
28
|
-
#endif
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
FT_BEGIN_HEADER
|
|
32
|
-
|
|
33
|
-
/**************************************************************************
|
|
34
|
-
*
|
|
35
|
-
* @section:
|
|
36
|
-
* lzw
|
|
37
|
-
*
|
|
38
|
-
* @title:
|
|
39
|
-
* LZW Streams
|
|
40
|
-
*
|
|
41
|
-
* @abstract:
|
|
42
|
-
* Using LZW-compressed font files.
|
|
43
|
-
*
|
|
44
|
-
* @description:
|
|
45
|
-
* In certain builds of the library, LZW compression recognition is
|
|
46
|
-
* automatically handled when calling @FT_New_Face or @FT_Open_Face.
|
|
47
|
-
* This means that if no font driver is capable of handling the raw
|
|
48
|
-
* compressed file, the library will try to open a LZW stream from it and
|
|
49
|
-
* re-open the face with it.
|
|
50
|
-
*
|
|
51
|
-
* The stream implementation is very basic and resets the decompression
|
|
52
|
-
* process each time seeking backwards is needed within the stream,
|
|
53
|
-
* which significantly undermines the performance.
|
|
54
|
-
*
|
|
55
|
-
* This section contains the declaration of LZW-specific functions.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
/**************************************************************************
|
|
60
|
-
*
|
|
61
|
-
* @function:
|
|
62
|
-
* FT_Stream_OpenLZW
|
|
63
|
-
*
|
|
64
|
-
* @description:
|
|
65
|
-
* Open a new stream to parse LZW-compressed font files. This is mainly
|
|
66
|
-
* used to support the compressed `*.pcf.Z` fonts that come with XFree86.
|
|
67
|
-
*
|
|
68
|
-
* @input:
|
|
69
|
-
* stream ::
|
|
70
|
-
* The target embedding stream.
|
|
71
|
-
*
|
|
72
|
-
* source ::
|
|
73
|
-
* The source stream.
|
|
74
|
-
*
|
|
75
|
-
* @return:
|
|
76
|
-
* FreeType error code. 0~means success.
|
|
77
|
-
*
|
|
78
|
-
* @note:
|
|
79
|
-
* The source stream must be opened _before_ calling this function.
|
|
80
|
-
*
|
|
81
|
-
* Calling the internal function `FT_Stream_Close` on the new stream will
|
|
82
|
-
* **not** call `FT_Stream_Close` on the source stream. None of the
|
|
83
|
-
* stream objects will be released to the heap.
|
|
84
|
-
*
|
|
85
|
-
* This function may return `FT_Err_Unimplemented_Feature` if your build
|
|
86
|
-
* of FreeType was not compiled with LZW support.
|
|
87
|
-
*/
|
|
88
|
-
FT_EXPORT( FT_Error )
|
|
89
|
-
FT_Stream_OpenLZW( FT_Stream stream,
|
|
90
|
-
FT_Stream source );
|
|
91
|
-
|
|
92
|
-
/* */
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
FT_END_HEADER
|
|
96
|
-
|
|
97
|
-
#endif /* FTLZW_H_ */
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/* END */
|