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,279 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * fterrdef.h
4
- *
5
- * FreeType error codes (specification).
6
- *
7
- * Copyright (C) 2002-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
- * @section:
22
- * error_code_values
23
- *
24
- * @title:
25
- * Error Code Values
26
- *
27
- * @abstract:
28
- * All possible error codes returned by FreeType functions.
29
- *
30
- * @description:
31
- * The list below is taken verbatim from the file `fterrdef.h` (loaded
32
- * automatically by including `FT_FREETYPE_H`). The first argument of the
33
- * `FT_ERROR_DEF_` macro is the error label; by default, the prefix
34
- * `FT_Err_` gets added so that you get error names like
35
- * `FT_Err_Cannot_Open_Resource`. The second argument is the error code,
36
- * and the last argument an error string, which is not used by FreeType.
37
- *
38
- * Within your application you should **only** use error names and
39
- * **never** its numeric values! The latter might (and actually do)
40
- * change in forthcoming FreeType versions.
41
- *
42
- * Macro `FT_NOERRORDEF_` defines `FT_Err_Ok`, which is always zero. See
43
- * the 'Error Enumerations' subsection how to automatically generate a
44
- * list of error strings.
45
- *
46
- */
47
-
48
-
49
- /**************************************************************************
50
- *
51
- * @enum:
52
- * FT_Err_XXX
53
- *
54
- */
55
-
56
- /* generic errors */
57
-
58
- FT_NOERRORDEF_( Ok, 0x00,
59
- "no error" )
60
-
61
- FT_ERRORDEF_( Cannot_Open_Resource, 0x01,
62
- "cannot open resource" )
63
- FT_ERRORDEF_( Unknown_File_Format, 0x02,
64
- "unknown file format" )
65
- FT_ERRORDEF_( Invalid_File_Format, 0x03,
66
- "broken file" )
67
- FT_ERRORDEF_( Invalid_Version, 0x04,
68
- "invalid FreeType version" )
69
- FT_ERRORDEF_( Lower_Module_Version, 0x05,
70
- "module version is too low" )
71
- FT_ERRORDEF_( Invalid_Argument, 0x06,
72
- "invalid argument" )
73
- FT_ERRORDEF_( Unimplemented_Feature, 0x07,
74
- "unimplemented feature" )
75
- FT_ERRORDEF_( Invalid_Table, 0x08,
76
- "broken table" )
77
- FT_ERRORDEF_( Invalid_Offset, 0x09,
78
- "broken offset within table" )
79
- FT_ERRORDEF_( Array_Too_Large, 0x0A,
80
- "array allocation size too large" )
81
- FT_ERRORDEF_( Missing_Module, 0x0B,
82
- "missing module" )
83
- FT_ERRORDEF_( Missing_Property, 0x0C,
84
- "missing property" )
85
-
86
- /* glyph/character errors */
87
-
88
- FT_ERRORDEF_( Invalid_Glyph_Index, 0x10,
89
- "invalid glyph index" )
90
- FT_ERRORDEF_( Invalid_Character_Code, 0x11,
91
- "invalid character code" )
92
- FT_ERRORDEF_( Invalid_Glyph_Format, 0x12,
93
- "unsupported glyph image format" )
94
- FT_ERRORDEF_( Cannot_Render_Glyph, 0x13,
95
- "cannot render this glyph format" )
96
- FT_ERRORDEF_( Invalid_Outline, 0x14,
97
- "invalid outline" )
98
- FT_ERRORDEF_( Invalid_Composite, 0x15,
99
- "invalid composite glyph" )
100
- FT_ERRORDEF_( Too_Many_Hints, 0x16,
101
- "too many hints" )
102
- FT_ERRORDEF_( Invalid_Pixel_Size, 0x17,
103
- "invalid pixel size" )
104
-
105
- /* handle errors */
106
-
107
- FT_ERRORDEF_( Invalid_Handle, 0x20,
108
- "invalid object handle" )
109
- FT_ERRORDEF_( Invalid_Library_Handle, 0x21,
110
- "invalid library handle" )
111
- FT_ERRORDEF_( Invalid_Driver_Handle, 0x22,
112
- "invalid module handle" )
113
- FT_ERRORDEF_( Invalid_Face_Handle, 0x23,
114
- "invalid face handle" )
115
- FT_ERRORDEF_( Invalid_Size_Handle, 0x24,
116
- "invalid size handle" )
117
- FT_ERRORDEF_( Invalid_Slot_Handle, 0x25,
118
- "invalid glyph slot handle" )
119
- FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26,
120
- "invalid charmap handle" )
121
- FT_ERRORDEF_( Invalid_Cache_Handle, 0x27,
122
- "invalid cache manager handle" )
123
- FT_ERRORDEF_( Invalid_Stream_Handle, 0x28,
124
- "invalid stream handle" )
125
-
126
- /* driver errors */
127
-
128
- FT_ERRORDEF_( Too_Many_Drivers, 0x30,
129
- "too many modules" )
130
- FT_ERRORDEF_( Too_Many_Extensions, 0x31,
131
- "too many extensions" )
132
-
133
- /* memory errors */
134
-
135
- FT_ERRORDEF_( Out_Of_Memory, 0x40,
136
- "out of memory" )
137
- FT_ERRORDEF_( Unlisted_Object, 0x41,
138
- "unlisted object" )
139
-
140
- /* stream errors */
141
-
142
- FT_ERRORDEF_( Cannot_Open_Stream, 0x51,
143
- "cannot open stream" )
144
- FT_ERRORDEF_( Invalid_Stream_Seek, 0x52,
145
- "invalid stream seek" )
146
- FT_ERRORDEF_( Invalid_Stream_Skip, 0x53,
147
- "invalid stream skip" )
148
- FT_ERRORDEF_( Invalid_Stream_Read, 0x54,
149
- "invalid stream read" )
150
- FT_ERRORDEF_( Invalid_Stream_Operation, 0x55,
151
- "invalid stream operation" )
152
- FT_ERRORDEF_( Invalid_Frame_Operation, 0x56,
153
- "invalid frame operation" )
154
- FT_ERRORDEF_( Nested_Frame_Access, 0x57,
155
- "nested frame access" )
156
- FT_ERRORDEF_( Invalid_Frame_Read, 0x58,
157
- "invalid frame read" )
158
-
159
- /* raster errors */
160
-
161
- FT_ERRORDEF_( Raster_Uninitialized, 0x60,
162
- "raster uninitialized" )
163
- FT_ERRORDEF_( Raster_Corrupted, 0x61,
164
- "raster corrupted" )
165
- FT_ERRORDEF_( Raster_Overflow, 0x62,
166
- "raster overflow" )
167
- FT_ERRORDEF_( Raster_Negative_Height, 0x63,
168
- "negative height while rastering" )
169
-
170
- /* cache errors */
171
-
172
- FT_ERRORDEF_( Too_Many_Caches, 0x70,
173
- "too many registered caches" )
174
-
175
- /* TrueType and SFNT errors */
176
-
177
- FT_ERRORDEF_( Invalid_Opcode, 0x80,
178
- "invalid opcode" )
179
- FT_ERRORDEF_( Too_Few_Arguments, 0x81,
180
- "too few arguments" )
181
- FT_ERRORDEF_( Stack_Overflow, 0x82,
182
- "stack overflow" )
183
- FT_ERRORDEF_( Code_Overflow, 0x83,
184
- "code overflow" )
185
- FT_ERRORDEF_( Bad_Argument, 0x84,
186
- "bad argument" )
187
- FT_ERRORDEF_( Divide_By_Zero, 0x85,
188
- "division by zero" )
189
- FT_ERRORDEF_( Invalid_Reference, 0x86,
190
- "invalid reference" )
191
- FT_ERRORDEF_( Debug_OpCode, 0x87,
192
- "found debug opcode" )
193
- FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88,
194
- "found ENDF opcode in execution stream" )
195
- FT_ERRORDEF_( Nested_DEFS, 0x89,
196
- "nested DEFS" )
197
- FT_ERRORDEF_( Invalid_CodeRange, 0x8A,
198
- "invalid code range" )
199
- FT_ERRORDEF_( Execution_Too_Long, 0x8B,
200
- "execution context too long" )
201
- FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C,
202
- "too many function definitions" )
203
- FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D,
204
- "too many instruction definitions" )
205
- FT_ERRORDEF_( Table_Missing, 0x8E,
206
- "SFNT font table missing" )
207
- FT_ERRORDEF_( Horiz_Header_Missing, 0x8F,
208
- "horizontal header (hhea) table missing" )
209
- FT_ERRORDEF_( Locations_Missing, 0x90,
210
- "locations (loca) table missing" )
211
- FT_ERRORDEF_( Name_Table_Missing, 0x91,
212
- "name table missing" )
213
- FT_ERRORDEF_( CMap_Table_Missing, 0x92,
214
- "character map (cmap) table missing" )
215
- FT_ERRORDEF_( Hmtx_Table_Missing, 0x93,
216
- "horizontal metrics (hmtx) table missing" )
217
- FT_ERRORDEF_( Post_Table_Missing, 0x94,
218
- "PostScript (post) table missing" )
219
- FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95,
220
- "invalid horizontal metrics" )
221
- FT_ERRORDEF_( Invalid_CharMap_Format, 0x96,
222
- "invalid character map (cmap) format" )
223
- FT_ERRORDEF_( Invalid_PPem, 0x97,
224
- "invalid ppem value" )
225
- FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98,
226
- "invalid vertical metrics" )
227
- FT_ERRORDEF_( Could_Not_Find_Context, 0x99,
228
- "could not find context" )
229
- FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A,
230
- "invalid PostScript (post) table format" )
231
- FT_ERRORDEF_( Invalid_Post_Table, 0x9B,
232
- "invalid PostScript (post) table" )
233
- FT_ERRORDEF_( DEF_In_Glyf_Bytecode, 0x9C,
234
- "found FDEF or IDEF opcode in glyf bytecode" )
235
- FT_ERRORDEF_( Missing_Bitmap, 0x9D,
236
- "missing bitmap in strike" )
237
-
238
- /* CFF, CID, and Type 1 errors */
239
-
240
- FT_ERRORDEF_( Syntax_Error, 0xA0,
241
- "opcode syntax error" )
242
- FT_ERRORDEF_( Stack_Underflow, 0xA1,
243
- "argument stack underflow" )
244
- FT_ERRORDEF_( Ignore, 0xA2,
245
- "ignore" )
246
- FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3,
247
- "no Unicode glyph name found" )
248
- FT_ERRORDEF_( Glyph_Too_Big, 0xA4,
249
- "glyph too big for hinting" )
250
-
251
- /* BDF errors */
252
-
253
- FT_ERRORDEF_( Missing_Startfont_Field, 0xB0,
254
- "`STARTFONT' field missing" )
255
- FT_ERRORDEF_( Missing_Font_Field, 0xB1,
256
- "`FONT' field missing" )
257
- FT_ERRORDEF_( Missing_Size_Field, 0xB2,
258
- "`SIZE' field missing" )
259
- FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3,
260
- "`FONTBOUNDINGBOX' field missing" )
261
- FT_ERRORDEF_( Missing_Chars_Field, 0xB4,
262
- "`CHARS' field missing" )
263
- FT_ERRORDEF_( Missing_Startchar_Field, 0xB5,
264
- "`STARTCHAR' field missing" )
265
- FT_ERRORDEF_( Missing_Encoding_Field, 0xB6,
266
- "`ENCODING' field missing" )
267
- FT_ERRORDEF_( Missing_Bbx_Field, 0xB7,
268
- "`BBX' field missing" )
269
- FT_ERRORDEF_( Bbx_Too_Big, 0xB8,
270
- "`BBX' too big" )
271
- FT_ERRORDEF_( Corrupted_Font_Header, 0xB9,
272
- "Font header corrupted or missing fields" )
273
- FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA,
274
- "Font glyphs corrupted or missing fields" )
275
-
276
- /* */
277
-
278
-
279
- /* END */
@@ -1,296 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * fterrors.h
4
- *
5
- * FreeType error code handling (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
- * @section:
22
- * error_enumerations
23
- *
24
- * @title:
25
- * Error Enumerations
26
- *
27
- * @abstract:
28
- * How to handle errors and error strings.
29
- *
30
- * @description:
31
- * The header file `fterrors.h` (which is automatically included by
32
- * `freetype.h` defines the handling of FreeType's enumeration
33
- * constants. It can also be used to generate error message strings
34
- * with a small macro trick explained below.
35
- *
36
- * **Error Formats**
37
- *
38
- * The configuration macro `FT_CONFIG_OPTION_USE_MODULE_ERRORS` can be
39
- * defined in `ftoption.h` in order to make the higher byte indicate the
40
- * module where the error has happened (this is not compatible with
41
- * standard builds of FreeType~2, however). See the file `ftmoderr.h`
42
- * for more details.
43
- *
44
- * **Error Message Strings**
45
- *
46
- * Error definitions are set up with special macros that allow client
47
- * applications to build a table of error message strings. The strings
48
- * are not included in a normal build of FreeType~2 to save space (most
49
- * client applications do not use them).
50
- *
51
- * To do so, you have to define the following macros before including
52
- * this file.
53
- *
54
- * ```
55
- * FT_ERROR_START_LIST
56
- * ```
57
- *
58
- * This macro is called before anything else to define the start of the
59
- * error list. It is followed by several `FT_ERROR_DEF` calls.
60
- *
61
- * ```
62
- * FT_ERROR_DEF( e, v, s )
63
- * ```
64
- *
65
- * This macro is called to define one single error. 'e' is the error
66
- * code identifier (e.g., `Invalid_Argument`), 'v' is the error's
67
- * numerical value, and 's' is the corresponding error string.
68
- *
69
- * ```
70
- * FT_ERROR_END_LIST
71
- * ```
72
- *
73
- * This macro ends the list.
74
- *
75
- * Additionally, you have to undefine `FTERRORS_H_` before #including
76
- * this file.
77
- *
78
- * Here is a simple example.
79
- *
80
- * ```
81
- * #undef FTERRORS_H_
82
- * #define FT_ERRORDEF( e, v, s ) { e, s },
83
- * #define FT_ERROR_START_LIST {
84
- * #define FT_ERROR_END_LIST { 0, NULL } };
85
- *
86
- * const struct
87
- * {
88
- * int err_code;
89
- * const char* err_msg;
90
- * } ft_errors[] =
91
- *
92
- * #include <freetype/fterrors.h>
93
- * ```
94
- *
95
- * An alternative to using an array is a switch statement.
96
- *
97
- * ```
98
- * #undef FTERRORS_H_
99
- * #define FT_ERROR_START_LIST switch ( error_code ) {
100
- * #define FT_ERRORDEF( e, v, s ) case v: return s;
101
- * #define FT_ERROR_END_LIST }
102
- * ```
103
- *
104
- * If you use `FT_CONFIG_OPTION_USE_MODULE_ERRORS`, `error_code` should
105
- * be replaced with `FT_ERROR_BASE(error_code)` in the last example.
106
- */
107
-
108
- /* */
109
-
110
- /* In previous FreeType versions we used `__FTERRORS_H__`. However, */
111
- /* using two successive underscores in a non-system symbol name */
112
- /* violates the C (and C++) standard, so it was changed to the */
113
- /* current form. In spite of this, we have to make */
114
- /* */
115
- /* ``` */
116
- /* #undefine __FTERRORS_H__ */
117
- /* ``` */
118
- /* */
119
- /* work for backward compatibility. */
120
- /* */
121
- #if !( defined( FTERRORS_H_ ) && defined ( __FTERRORS_H__ ) )
122
- #define FTERRORS_H_
123
- #define __FTERRORS_H__
124
-
125
-
126
- /* include module base error codes */
127
- #include <freetype/ftmoderr.h>
128
-
129
-
130
- /*******************************************************************/
131
- /*******************************************************************/
132
- /***** *****/
133
- /***** SETUP MACROS *****/
134
- /***** *****/
135
- /*******************************************************************/
136
- /*******************************************************************/
137
-
138
-
139
- #undef FT_NEED_EXTERN_C
140
-
141
-
142
- /* FT_ERR_PREFIX is used as a prefix for error identifiers. */
143
- /* By default, we use `FT_Err_`. */
144
- /* */
145
- #ifndef FT_ERR_PREFIX
146
- #define FT_ERR_PREFIX FT_Err_
147
- #endif
148
-
149
-
150
- /* FT_ERR_BASE is used as the base for module-specific errors. */
151
- /* */
152
- #ifdef FT_CONFIG_OPTION_USE_MODULE_ERRORS
153
-
154
- #ifndef FT_ERR_BASE
155
- #define FT_ERR_BASE FT_Mod_Err_Base
156
- #endif
157
-
158
- #else
159
-
160
- #undef FT_ERR_BASE
161
- #define FT_ERR_BASE 0
162
-
163
- #endif /* FT_CONFIG_OPTION_USE_MODULE_ERRORS */
164
-
165
-
166
- /* If FT_ERRORDEF is not defined, we need to define a simple */
167
- /* enumeration type. */
168
- /* */
169
- #ifndef FT_ERRORDEF
170
-
171
- #define FT_INCLUDE_ERR_PROTOS
172
-
173
- #define FT_ERRORDEF( e, v, s ) e = v,
174
- #define FT_ERROR_START_LIST enum {
175
- #define FT_ERROR_END_LIST FT_ERR_CAT( FT_ERR_PREFIX, Max ) };
176
-
177
- #ifdef __cplusplus
178
- #define FT_NEED_EXTERN_C
179
- extern "C" {
180
- #endif
181
-
182
- #endif /* !FT_ERRORDEF */
183
-
184
-
185
- /* this macro is used to define an error */
186
- #define FT_ERRORDEF_( e, v, s ) \
187
- FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v + FT_ERR_BASE, s )
188
-
189
- /* this is only used for <module>_Err_Ok, which must be 0! */
190
- #define FT_NOERRORDEF_( e, v, s ) \
191
- FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v, s )
192
-
193
-
194
- #ifdef FT_ERROR_START_LIST
195
- FT_ERROR_START_LIST
196
- #endif
197
-
198
-
199
- /* now include the error codes */
200
- #include <freetype/fterrdef.h>
201
-
202
-
203
- #ifdef FT_ERROR_END_LIST
204
- FT_ERROR_END_LIST
205
- #endif
206
-
207
-
208
- /*******************************************************************/
209
- /*******************************************************************/
210
- /***** *****/
211
- /***** SIMPLE CLEANUP *****/
212
- /***** *****/
213
- /*******************************************************************/
214
- /*******************************************************************/
215
-
216
- #ifdef FT_NEED_EXTERN_C
217
- }
218
- #endif
219
-
220
- #undef FT_ERROR_START_LIST
221
- #undef FT_ERROR_END_LIST
222
-
223
- #undef FT_ERRORDEF
224
- #undef FT_ERRORDEF_
225
- #undef FT_NOERRORDEF_
226
-
227
- #undef FT_NEED_EXTERN_C
228
- #undef FT_ERR_BASE
229
-
230
- /* FT_ERR_PREFIX is needed internally */
231
- #ifndef FT2_BUILD_LIBRARY
232
- #undef FT_ERR_PREFIX
233
- #endif
234
-
235
- /* FT_INCLUDE_ERR_PROTOS: Control whether function prototypes should be */
236
- /* included with */
237
- /* */
238
- /* #include <freetype/fterrors.h> */
239
- /* */
240
- /* This is only true where `FT_ERRORDEF` is */
241
- /* undefined. */
242
- /* */
243
- /* FT_ERR_PROTOS_DEFINED: Actual multiple-inclusion protection of */
244
- /* `fterrors.h`. */
245
- #ifdef FT_INCLUDE_ERR_PROTOS
246
- #undef FT_INCLUDE_ERR_PROTOS
247
-
248
- #ifndef FT_ERR_PROTOS_DEFINED
249
- #define FT_ERR_PROTOS_DEFINED
250
-
251
-
252
- FT_BEGIN_HEADER
253
-
254
- /**************************************************************************
255
- *
256
- * @function:
257
- * FT_Error_String
258
- *
259
- * @description:
260
- * Retrieve the description of a valid FreeType error code.
261
- *
262
- * @input:
263
- * error_code ::
264
- * A valid FreeType error code.
265
- *
266
- * @return:
267
- * A C~string or `NULL`, if any error occurred.
268
- *
269
- * @note:
270
- * FreeType has to be compiled with `FT_CONFIG_OPTION_ERROR_STRINGS` or
271
- * `FT_DEBUG_LEVEL_ERROR` to get meaningful descriptions.
272
- * 'error_string' will be `NULL` otherwise.
273
- *
274
- * Module identification will be ignored:
275
- *
276
- * ```c
277
- * strcmp( FT_Error_String( FT_Err_Unknown_File_Format ),
278
- * FT_Error_String( BDF_Err_Unknown_File_Format ) ) == 0;
279
- * ```
280
- */
281
- FT_EXPORT( const char* )
282
- FT_Error_String( FT_Error error_code );
283
-
284
- /* */
285
-
286
- FT_END_HEADER
287
-
288
-
289
- #endif /* FT_ERR_PROTOS_DEFINED */
290
-
291
- #endif /* FT_INCLUDE_ERR_PROTOS */
292
-
293
- #endif /* !(FTERRORS_H_ && __FTERRORS_H__) */
294
-
295
-
296
- /* END */
@@ -1,93 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * ftfntfmt.h
4
- *
5
- * Support functions for font formats.
6
- *
7
- * Copyright (C) 2002-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 FTFNTFMT_H_
20
- #define FTFNTFMT_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
- *
36
- * @section:
37
- * font_formats
38
- *
39
- * @title:
40
- * Font Formats
41
- *
42
- * @abstract:
43
- * Getting the font format.
44
- *
45
- * @description:
46
- * The single function in this section can be used to get the font format.
47
- * Note that this information is not needed normally; however, there are
48
- * special cases (like in PDF devices) where it is important to
49
- * differentiate, in spite of FreeType's uniform API.
50
- *
51
- */
52
-
53
-
54
- /**************************************************************************
55
- *
56
- * @function:
57
- * FT_Get_Font_Format
58
- *
59
- * @description:
60
- * Return a string describing the format of a given face. Possible values
61
- * are 'TrueType', 'Type~1', 'BDF', 'PCF', 'Type~42', 'CID~Type~1', 'CFF',
62
- * 'PFR', and 'Windows~FNT'.
63
- *
64
- * The return value is suitable to be used as an X11 FONT_PROPERTY.
65
- *
66
- * @input:
67
- * face ::
68
- * Input face handle.
69
- *
70
- * @return:
71
- * Font format string. `NULL` in case of error.
72
- *
73
- * @note:
74
- * A deprecated name for the same function is `FT_Get_X11_Font_Format`.
75
- */
76
- FT_EXPORT( const char* )
77
- FT_Get_Font_Format( FT_Face face );
78
-
79
-
80
- /* deprecated */
81
- FT_EXPORT( const char* )
82
- FT_Get_X11_Font_Format( FT_Face face );
83
-
84
-
85
- /* */
86
-
87
-
88
- FT_END_HEADER
89
-
90
- #endif /* FTFNTFMT_H_ */
91
-
92
-
93
- /* END */