jassub 1.7.12 → 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.
Files changed (175) hide show
  1. package/dist/jassub-worker-modern.wasm +0 -0
  2. package/dist/jassub-worker.js +11 -11
  3. package/dist/jassub-worker.wasm +0 -0
  4. package/dist/jassub-worker.wasm.js +1 -1
  5. package/package.json +4 -2
  6. package/dist/js/jassub-worker-modern.js +0 -10
  7. package/dist/js/jassub-worker-modern.wasm +0 -0
  8. package/dist/js/jassub-worker.js +0 -10
  9. package/dist/js/jassub-worker.wasm +0 -0
  10. package/dist/js/jassub-worker.wasm.js +0 -84
  11. package/dist/js/jassub.js +0 -832
  12. package/dist/libraries/bin/brotli.js +0 -1
  13. package/dist/libraries/include/ass/ass.h +0 -812
  14. package/dist/libraries/include/ass/ass_types.h +0 -292
  15. package/dist/libraries/include/brotli/decode.h +0 -344
  16. package/dist/libraries/include/brotli/encode.h +0 -448
  17. package/dist/libraries/include/brotli/port.h +0 -288
  18. package/dist/libraries/include/brotli/types.h +0 -83
  19. package/dist/libraries/include/expat.h +0 -1064
  20. package/dist/libraries/include/expat_config.h +0 -115
  21. package/dist/libraries/include/expat_external.h +0 -165
  22. package/dist/libraries/include/fontconfig/fcfreetype.h +0 -59
  23. package/dist/libraries/include/fontconfig/fcprivate.h +0 -134
  24. package/dist/libraries/include/fontconfig/fontconfig.h +0 -1154
  25. package/dist/libraries/include/freetype2/freetype/config/ftconfig.h +0 -63
  26. package/dist/libraries/include/freetype2/freetype/config/ftheader.h +0 -824
  27. package/dist/libraries/include/freetype2/freetype/config/ftmodule.h +0 -20
  28. package/dist/libraries/include/freetype2/freetype/config/ftoption.h +0 -1011
  29. package/dist/libraries/include/freetype2/freetype/config/ftstdlib.h +0 -175
  30. package/dist/libraries/include/freetype2/freetype/config/integer-types.h +0 -245
  31. package/dist/libraries/include/freetype2/freetype/config/mac-support.h +0 -49
  32. package/dist/libraries/include/freetype2/freetype/config/public-macros.h +0 -120
  33. package/dist/libraries/include/freetype2/freetype/freetype.h +0 -4833
  34. package/dist/libraries/include/freetype2/freetype/ftadvanc.h +0 -188
  35. package/dist/libraries/include/freetype2/freetype/ftbbox.h +0 -101
  36. package/dist/libraries/include/freetype2/freetype/ftbdf.h +0 -212
  37. package/dist/libraries/include/freetype2/freetype/ftbitmap.h +0 -329
  38. package/dist/libraries/include/freetype2/freetype/ftbzip2.h +0 -102
  39. package/dist/libraries/include/freetype2/freetype/ftcache.h +0 -1087
  40. package/dist/libraries/include/freetype2/freetype/ftchapters.h +0 -147
  41. package/dist/libraries/include/freetype2/freetype/ftcid.h +0 -167
  42. package/dist/libraries/include/freetype2/freetype/ftcolor.h +0 -1609
  43. package/dist/libraries/include/freetype2/freetype/ftdriver.h +0 -1193
  44. package/dist/libraries/include/freetype2/freetype/fterrdef.h +0 -279
  45. package/dist/libraries/include/freetype2/freetype/fterrors.h +0 -296
  46. package/dist/libraries/include/freetype2/freetype/ftfntfmt.h +0 -93
  47. package/dist/libraries/include/freetype2/freetype/ftgasp.h +0 -143
  48. package/dist/libraries/include/freetype2/freetype/ftglyph.h +0 -664
  49. package/dist/libraries/include/freetype2/freetype/ftgxval.h +0 -354
  50. package/dist/libraries/include/freetype2/freetype/ftgzip.h +0 -151
  51. package/dist/libraries/include/freetype2/freetype/ftimage.h +0 -1276
  52. package/dist/libraries/include/freetype2/freetype/ftincrem.h +0 -348
  53. package/dist/libraries/include/freetype2/freetype/ftlcdfil.h +0 -323
  54. package/dist/libraries/include/freetype2/freetype/ftlist.h +0 -296
  55. package/dist/libraries/include/freetype2/freetype/ftlogging.h +0 -184
  56. package/dist/libraries/include/freetype2/freetype/ftlzw.h +0 -100
  57. package/dist/libraries/include/freetype2/freetype/ftmac.h +0 -289
  58. package/dist/libraries/include/freetype2/freetype/ftmm.h +0 -752
  59. package/dist/libraries/include/freetype2/freetype/ftmodapi.h +0 -806
  60. package/dist/libraries/include/freetype2/freetype/ftmoderr.h +0 -204
  61. package/dist/libraries/include/freetype2/freetype/ftotval.h +0 -206
  62. package/dist/libraries/include/freetype2/freetype/ftoutln.h +0 -586
  63. package/dist/libraries/include/freetype2/freetype/ftparams.h +0 -203
  64. package/dist/libraries/include/freetype2/freetype/ftpfr.h +0 -179
  65. package/dist/libraries/include/freetype2/freetype/ftrender.h +0 -244
  66. package/dist/libraries/include/freetype2/freetype/ftsizes.h +0 -159
  67. package/dist/libraries/include/freetype2/freetype/ftsnames.h +0 -272
  68. package/dist/libraries/include/freetype2/freetype/ftstroke.h +0 -773
  69. package/dist/libraries/include/freetype2/freetype/ftsynth.h +0 -83
  70. package/dist/libraries/include/freetype2/freetype/ftsystem.h +0 -352
  71. package/dist/libraries/include/freetype2/freetype/fttrigon.h +0 -350
  72. package/dist/libraries/include/freetype2/freetype/fttypes.h +0 -615
  73. package/dist/libraries/include/freetype2/freetype/ftwinfnt.h +0 -276
  74. package/dist/libraries/include/freetype2/freetype/t1tables.h +0 -773
  75. package/dist/libraries/include/freetype2/freetype/ttnameid.h +0 -1235
  76. package/dist/libraries/include/freetype2/freetype/tttables.h +0 -855
  77. package/dist/libraries/include/freetype2/freetype/tttags.h +0 -123
  78. package/dist/libraries/include/freetype2/ft2build.h +0 -42
  79. package/dist/libraries/include/fribidi/fribidi-arabic.h +0 -81
  80. package/dist/libraries/include/fribidi/fribidi-begindecls.h +0 -3
  81. package/dist/libraries/include/fribidi/fribidi-bidi-types-list.h +0 -96
  82. package/dist/libraries/include/fribidi/fribidi-bidi-types.h +0 -405
  83. package/dist/libraries/include/fribidi/fribidi-bidi.h +0 -142
  84. package/dist/libraries/include/fribidi/fribidi-brackets.h +0 -89
  85. package/dist/libraries/include/fribidi/fribidi-char-sets-list.h +0 -54
  86. package/dist/libraries/include/fribidi/fribidi-char-sets.h +0 -106
  87. package/dist/libraries/include/fribidi/fribidi-common.h +0 -158
  88. package/dist/libraries/include/fribidi/fribidi-config.h +0 -23
  89. package/dist/libraries/include/fribidi/fribidi-deprecated.h +0 -175
  90. package/dist/libraries/include/fribidi/fribidi-enddecls.h +0 -3
  91. package/dist/libraries/include/fribidi/fribidi-flags.h +0 -72
  92. package/dist/libraries/include/fribidi/fribidi-joining-types-list.h +0 -44
  93. package/dist/libraries/include/fribidi/fribidi-joining-types.h +0 -249
  94. package/dist/libraries/include/fribidi/fribidi-joining.h +0 -74
  95. package/dist/libraries/include/fribidi/fribidi-mirroring.h +0 -86
  96. package/dist/libraries/include/fribidi/fribidi-shape.h +0 -71
  97. package/dist/libraries/include/fribidi/fribidi-types.h +0 -79
  98. package/dist/libraries/include/fribidi/fribidi-unicode-version.h +0 -10
  99. package/dist/libraries/include/fribidi/fribidi-unicode.h +0 -105
  100. package/dist/libraries/include/fribidi/fribidi.h +0 -129
  101. package/dist/libraries/include/harfbuzz/hb-aat-layout.h +0 -795
  102. package/dist/libraries/include/harfbuzz/hb-aat.h +0 -38
  103. package/dist/libraries/include/harfbuzz/hb-blob.h +0 -160
  104. package/dist/libraries/include/harfbuzz/hb-buffer.h +0 -799
  105. package/dist/libraries/include/harfbuzz/hb-common.h +0 -902
  106. package/dist/libraries/include/harfbuzz/hb-cplusplus.hh +0 -221
  107. package/dist/libraries/include/harfbuzz/hb-deprecated.h +0 -251
  108. package/dist/libraries/include/harfbuzz/hb-draw.h +0 -325
  109. package/dist/libraries/include/harfbuzz/hb-face.h +0 -181
  110. package/dist/libraries/include/harfbuzz/hb-font.h +0 -1108
  111. package/dist/libraries/include/harfbuzz/hb-ft.h +0 -145
  112. package/dist/libraries/include/harfbuzz/hb-map.h +0 -124
  113. package/dist/libraries/include/harfbuzz/hb-ot-color.h +0 -146
  114. package/dist/libraries/include/harfbuzz/hb-ot-deprecated.h +0 -141
  115. package/dist/libraries/include/harfbuzz/hb-ot-font.h +0 -45
  116. package/dist/libraries/include/harfbuzz/hb-ot-layout.h +0 -503
  117. package/dist/libraries/include/harfbuzz/hb-ot-math.h +0 -333
  118. package/dist/libraries/include/harfbuzz/hb-ot-meta.h +0 -72
  119. package/dist/libraries/include/harfbuzz/hb-ot-metrics.h +0 -129
  120. package/dist/libraries/include/harfbuzz/hb-ot-name.h +0 -158
  121. package/dist/libraries/include/harfbuzz/hb-ot-shape.h +0 -53
  122. package/dist/libraries/include/harfbuzz/hb-ot-var.h +0 -191
  123. package/dist/libraries/include/harfbuzz/hb-ot.h +0 -49
  124. package/dist/libraries/include/harfbuzz/hb-set.h +0 -200
  125. package/dist/libraries/include/harfbuzz/hb-shape-plan.h +0 -122
  126. package/dist/libraries/include/harfbuzz/hb-shape.h +0 -62
  127. package/dist/libraries/include/harfbuzz/hb-style.h +0 -81
  128. package/dist/libraries/include/harfbuzz/hb-subset-repacker.h +0 -81
  129. package/dist/libraries/include/harfbuzz/hb-subset.h +0 -234
  130. package/dist/libraries/include/harfbuzz/hb-unicode.h +0 -643
  131. package/dist/libraries/include/harfbuzz/hb-version.h +0 -95
  132. package/dist/libraries/include/harfbuzz/hb.h +0 -50
  133. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config-version.cmake +0 -70
  134. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config.cmake +0 -99
  135. package/dist/libraries/lib/cmake/expat-2.4.7/expat-noconfig.cmake +0 -19
  136. package/dist/libraries/lib/cmake/expat-2.4.7/expat.cmake +0 -99
  137. package/dist/libraries/lib/libass.a +0 -0
  138. package/dist/libraries/lib/libass.la +0 -41
  139. package/dist/libraries/lib/libbrotlicommon.a +0 -0
  140. package/dist/libraries/lib/libbrotlidec.a +0 -0
  141. package/dist/libraries/lib/libbrotlienc.a +0 -0
  142. package/dist/libraries/lib/libexpat.a +0 -0
  143. package/dist/libraries/lib/libfontconfig.a +0 -0
  144. package/dist/libraries/lib/libfontconfig.la +0 -41
  145. package/dist/libraries/lib/libfreetype.a +0 -0
  146. package/dist/libraries/lib/libfreetype.la +0 -41
  147. package/dist/libraries/lib/libfribidi.a +0 -0
  148. package/dist/libraries/lib/libfribidi.la +0 -41
  149. package/dist/libraries/lib/libharfbuzz-subset.a +0 -0
  150. package/dist/libraries/lib/libharfbuzz-subset.la +0 -41
  151. package/dist/libraries/lib/libharfbuzz.a +0 -0
  152. package/dist/libraries/lib/libharfbuzz.la +0 -41
  153. package/dist/libraries/lib/pkgconfig/expat.pc +0 -11
  154. package/dist/libraries/lib/pkgconfig/fontconfig.pc +0 -18
  155. package/dist/libraries/lib/pkgconfig/freetype2.pc +0 -14
  156. package/dist/libraries/lib/pkgconfig/fribidi.pc +0 -13
  157. package/dist/libraries/lib/pkgconfig/harfbuzz-subset.pc +0 -12
  158. package/dist/libraries/lib/pkgconfig/harfbuzz.pc +0 -13
  159. package/dist/libraries/lib/pkgconfig/libass.pc +0 -13
  160. package/dist/libraries/lib/pkgconfig/libbrotlicommon.pc +0 -11
  161. package/dist/libraries/lib/pkgconfig/libbrotlidec.pc +0 -12
  162. package/dist/libraries/lib/pkgconfig/libbrotlienc.pc +0 -12
  163. package/dist/libraries/share/aclocal/freetype2.m4 +0 -194
  164. package/dist/libraries/share/doc/expat/AUTHORS +0 -10
  165. package/dist/libraries/share/doc/expat/changelog +0 -1161
  166. package/dist/license/all +0 -951
  167. package/dist/license/all.tmp +0 -307
  168. package/dist/license/brotli +0 -12
  169. package/dist/license/expat +0 -71
  170. package/dist/license/fontconfig +0 -46
  171. package/dist/license/freetype +0 -92
  172. package/dist/license/fribidi +0 -15
  173. package/dist/license/harfbuzz +0 -32
  174. package/dist/license/jassub +0 -0
  175. package/dist/license/libass +0 -28
@@ -1,329 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * ftbitmap.h
4
- *
5
- * FreeType utility functions for bitmaps (specification).
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 FTBITMAP_H_
20
- #define FTBITMAP_H_
21
-
22
-
23
- #include <freetype/freetype.h>
24
- #include <freetype/ftcolor.h>
25
-
26
- #ifdef FREETYPE_H
27
- #error "freetype.h of FreeType 1 has been loaded!"
28
- #error "Please fix the directory search order for header files"
29
- #error "so that freetype.h of FreeType 2 is found first."
30
- #endif
31
-
32
-
33
- FT_BEGIN_HEADER
34
-
35
-
36
- /**************************************************************************
37
- *
38
- * @section:
39
- * bitmap_handling
40
- *
41
- * @title:
42
- * Bitmap Handling
43
- *
44
- * @abstract:
45
- * Handling FT_Bitmap objects.
46
- *
47
- * @description:
48
- * This section contains functions for handling @FT_Bitmap objects,
49
- * automatically adjusting the target's bitmap buffer size as needed.
50
- *
51
- * Note that none of the functions changes the bitmap's 'flow' (as
52
- * indicated by the sign of the `pitch` field in @FT_Bitmap).
53
- *
54
- * To set the flow, assign an appropriate positive or negative value to
55
- * the `pitch` field of the target @FT_Bitmap object after calling
56
- * @FT_Bitmap_Init but before calling any of the other functions
57
- * described here.
58
- */
59
-
60
-
61
- /**************************************************************************
62
- *
63
- * @function:
64
- * FT_Bitmap_Init
65
- *
66
- * @description:
67
- * Initialize a pointer to an @FT_Bitmap structure.
68
- *
69
- * @inout:
70
- * abitmap ::
71
- * A pointer to the bitmap structure.
72
- *
73
- * @note:
74
- * A deprecated name for the same function is `FT_Bitmap_New`.
75
- */
76
- FT_EXPORT( void )
77
- FT_Bitmap_Init( FT_Bitmap *abitmap );
78
-
79
-
80
- /* deprecated */
81
- FT_EXPORT( void )
82
- FT_Bitmap_New( FT_Bitmap *abitmap );
83
-
84
-
85
- /**************************************************************************
86
- *
87
- * @function:
88
- * FT_Bitmap_Copy
89
- *
90
- * @description:
91
- * Copy a bitmap into another one.
92
- *
93
- * @input:
94
- * library ::
95
- * A handle to a library object.
96
- *
97
- * source ::
98
- * A handle to the source bitmap.
99
- *
100
- * @output:
101
- * target ::
102
- * A handle to the target bitmap.
103
- *
104
- * @return:
105
- * FreeType error code. 0~means success.
106
- *
107
- * @note:
108
- * `source->buffer` and `target->buffer` must neither be equal nor
109
- * overlap.
110
- */
111
- FT_EXPORT( FT_Error )
112
- FT_Bitmap_Copy( FT_Library library,
113
- const FT_Bitmap *source,
114
- FT_Bitmap *target );
115
-
116
-
117
- /**************************************************************************
118
- *
119
- * @function:
120
- * FT_Bitmap_Embolden
121
- *
122
- * @description:
123
- * Embolden a bitmap. The new bitmap will be about `xStrength` pixels
124
- * wider and `yStrength` pixels higher. The left and bottom borders are
125
- * kept unchanged.
126
- *
127
- * @input:
128
- * library ::
129
- * A handle to a library object.
130
- *
131
- * xStrength ::
132
- * How strong the glyph is emboldened horizontally. Expressed in 26.6
133
- * pixel format.
134
- *
135
- * yStrength ::
136
- * How strong the glyph is emboldened vertically. Expressed in 26.6
137
- * pixel format.
138
- *
139
- * @inout:
140
- * bitmap ::
141
- * A handle to the target bitmap.
142
- *
143
- * @return:
144
- * FreeType error code. 0~means success.
145
- *
146
- * @note:
147
- * The current implementation restricts `xStrength` to be less than or
148
- * equal to~8 if bitmap is of pixel_mode @FT_PIXEL_MODE_MONO.
149
- *
150
- * If you want to embolden the bitmap owned by a @FT_GlyphSlotRec, you
151
- * should call @FT_GlyphSlot_Own_Bitmap on the slot first.
152
- *
153
- * Bitmaps in @FT_PIXEL_MODE_GRAY2 and @FT_PIXEL_MODE_GRAY@ format are
154
- * converted to @FT_PIXEL_MODE_GRAY format (i.e., 8bpp).
155
- */
156
- FT_EXPORT( FT_Error )
157
- FT_Bitmap_Embolden( FT_Library library,
158
- FT_Bitmap* bitmap,
159
- FT_Pos xStrength,
160
- FT_Pos yStrength );
161
-
162
-
163
- /**************************************************************************
164
- *
165
- * @function:
166
- * FT_Bitmap_Convert
167
- *
168
- * @description:
169
- * Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
170
- * a bitmap object with depth 8bpp, making the number of used bytes per
171
- * line (a.k.a. the 'pitch') a multiple of `alignment`.
172
- *
173
- * @input:
174
- * library ::
175
- * A handle to a library object.
176
- *
177
- * source ::
178
- * The source bitmap.
179
- *
180
- * alignment ::
181
- * The pitch of the bitmap is a multiple of this argument. Common
182
- * values are 1, 2, or 4.
183
- *
184
- * @output:
185
- * target ::
186
- * The target bitmap.
187
- *
188
- * @return:
189
- * FreeType error code. 0~means success.
190
- *
191
- * @note:
192
- * It is possible to call @FT_Bitmap_Convert multiple times without
193
- * calling @FT_Bitmap_Done (the memory is simply reallocated).
194
- *
195
- * Use @FT_Bitmap_Done to finally remove the bitmap object.
196
- *
197
- * The `library` argument is taken to have access to FreeType's memory
198
- * handling functions.
199
- *
200
- * `source->buffer` and `target->buffer` must neither be equal nor
201
- * overlap.
202
- */
203
- FT_EXPORT( FT_Error )
204
- FT_Bitmap_Convert( FT_Library library,
205
- const FT_Bitmap *source,
206
- FT_Bitmap *target,
207
- FT_Int alignment );
208
-
209
-
210
- /**************************************************************************
211
- *
212
- * @function:
213
- * FT_Bitmap_Blend
214
- *
215
- * @description:
216
- * Blend a bitmap onto another bitmap, using a given color.
217
- *
218
- * @input:
219
- * library ::
220
- * A handle to a library object.
221
- *
222
- * source ::
223
- * The source bitmap, which can have any @FT_Pixel_Mode format.
224
- *
225
- * source_offset ::
226
- * The offset vector to the upper left corner of the source bitmap in
227
- * 26.6 pixel format. It should represent an integer offset; the
228
- * function will set the lowest six bits to zero to enforce that.
229
- *
230
- * color ::
231
- * The color used to draw `source` onto `target`.
232
- *
233
- * @inout:
234
- * target ::
235
- * A handle to an `FT_Bitmap` object. It should be either initialized
236
- * as empty with a call to @FT_Bitmap_Init, or it should be of type
237
- * @FT_PIXEL_MODE_BGRA.
238
- *
239
- * atarget_offset ::
240
- * The offset vector to the upper left corner of the target bitmap in
241
- * 26.6 pixel format. It should represent an integer offset; the
242
- * function will set the lowest six bits to zero to enforce that.
243
- *
244
- * @return:
245
- * FreeType error code. 0~means success.
246
- *
247
- * @note:
248
- * This function doesn't perform clipping.
249
- *
250
- * The bitmap in `target` gets allocated or reallocated as needed; the
251
- * vector `atarget_offset` is updated accordingly.
252
- *
253
- * In case of allocation or reallocation, the bitmap's pitch is set to
254
- * `4 * width`. Both `source` and `target` must have the same bitmap
255
- * flow (as indicated by the sign of the `pitch` field).
256
- *
257
- * `source->buffer` and `target->buffer` must neither be equal nor
258
- * overlap.
259
- *
260
- * @since:
261
- * 2.10
262
- */
263
- FT_EXPORT( FT_Error )
264
- FT_Bitmap_Blend( FT_Library library,
265
- const FT_Bitmap* source,
266
- const FT_Vector source_offset,
267
- FT_Bitmap* target,
268
- FT_Vector *atarget_offset,
269
- FT_Color color );
270
-
271
-
272
- /**************************************************************************
273
- *
274
- * @function:
275
- * FT_GlyphSlot_Own_Bitmap
276
- *
277
- * @description:
278
- * Make sure that a glyph slot owns `slot->bitmap`.
279
- *
280
- * @input:
281
- * slot ::
282
- * The glyph slot.
283
- *
284
- * @return:
285
- * FreeType error code. 0~means success.
286
- *
287
- * @note:
288
- * This function is to be used in combination with @FT_Bitmap_Embolden.
289
- */
290
- FT_EXPORT( FT_Error )
291
- FT_GlyphSlot_Own_Bitmap( FT_GlyphSlot slot );
292
-
293
-
294
- /**************************************************************************
295
- *
296
- * @function:
297
- * FT_Bitmap_Done
298
- *
299
- * @description:
300
- * Destroy a bitmap object initialized with @FT_Bitmap_Init.
301
- *
302
- * @input:
303
- * library ::
304
- * A handle to a library object.
305
- *
306
- * bitmap ::
307
- * The bitmap object to be freed.
308
- *
309
- * @return:
310
- * FreeType error code. 0~means success.
311
- *
312
- * @note:
313
- * The `library` argument is taken to have access to FreeType's memory
314
- * handling functions.
315
- */
316
- FT_EXPORT( FT_Error )
317
- FT_Bitmap_Done( FT_Library library,
318
- FT_Bitmap *bitmap );
319
-
320
-
321
- /* */
322
-
323
-
324
- FT_END_HEADER
325
-
326
- #endif /* FTBITMAP_H_ */
327
-
328
-
329
- /* END */
@@ -1,102 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * ftbzip2.h
4
- *
5
- * Bzip2-compressed stream support.
6
- *
7
- * Copyright (C) 2010-2021 by
8
- * Joel Klinghed.
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 FTBZIP2_H_
20
- #define FTBZIP2_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
- * bzip2
37
- *
38
- * @title:
39
- * BZIP2 Streams
40
- *
41
- * @abstract:
42
- * Using bzip2-compressed font files.
43
- *
44
- * @description:
45
- * In certain builds of the library, bzip2 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 bzip2 compressed
49
- * stream from it and 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 Bzip2-specific functions.
56
- *
57
- */
58
-
59
-
60
- /**************************************************************************
61
- *
62
- * @function:
63
- * FT_Stream_OpenBzip2
64
- *
65
- * @description:
66
- * Open a new stream to parse bzip2-compressed font files. This is
67
- * mainly used to support the compressed `*.pcf.bz2` fonts that come with
68
- * XFree86.
69
- *
70
- * @input:
71
- * stream ::
72
- * The target embedding stream.
73
- *
74
- * source ::
75
- * The source stream.
76
- *
77
- * @return:
78
- * FreeType error code. 0~means success.
79
- *
80
- * @note:
81
- * The source stream must be opened _before_ calling this function.
82
- *
83
- * Calling the internal function `FT_Stream_Close` on the new stream will
84
- * **not** call `FT_Stream_Close` on the source stream. None of the
85
- * stream objects will be released to the heap.
86
- *
87
- * This function may return `FT_Err_Unimplemented_Feature` if your build
88
- * of FreeType was not compiled with bzip2 support.
89
- */
90
- FT_EXPORT( FT_Error )
91
- FT_Stream_OpenBzip2( FT_Stream stream,
92
- FT_Stream source );
93
-
94
- /* */
95
-
96
-
97
- FT_END_HEADER
98
-
99
- #endif /* FTBZIP2_H_ */
100
-
101
-
102
- /* END */