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,503 +0,0 @@
1
- /*
2
- * Copyright © 2007,2008,2009 Red Hat, Inc.
3
- *
4
- * This is part of HarfBuzz, a text shaping library.
5
- *
6
- * Permission is hereby granted, without written agreement and without
7
- * license or royalty fees, to use, copy, modify, and distribute this
8
- * software and its documentation for any purpose, provided that the
9
- * above copyright notice and the following two paragraphs appear in
10
- * all copies of this software.
11
- *
12
- * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13
- * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14
- * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15
- * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16
- * DAMAGE.
17
- *
18
- * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19
- * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20
- * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21
- * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22
- * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23
- *
24
- * Red Hat Author(s): Behdad Esfahbod
25
- */
26
-
27
- #if !defined(HB_OT_H_IN) && !defined(HB_NO_SINGLE_HEADER_ERROR)
28
- #error "Include <hb-ot.h> instead."
29
- #endif
30
-
31
- #ifndef HB_OT_LAYOUT_H
32
- #define HB_OT_LAYOUT_H
33
-
34
- #include "hb.h"
35
-
36
- #include "hb-ot-name.h"
37
-
38
- HB_BEGIN_DECLS
39
-
40
-
41
- /**
42
- * HB_OT_TAG_BASE:
43
- *
44
- * OpenType [Baseline Table](https://docs.microsoft.com/en-us/typography/opentype/spec/base).
45
- */
46
- #define HB_OT_TAG_BASE HB_TAG('B','A','S','E')
47
- /**
48
- * HB_OT_TAG_GDEF:
49
- *
50
- * OpenType [Glyph Definition Table](https://docs.microsoft.com/en-us/typography/opentype/spec/gdef).
51
- */
52
- #define HB_OT_TAG_GDEF HB_TAG('G','D','E','F')
53
- /**
54
- * HB_OT_TAG_GSUB:
55
- *
56
- * OpenType [Glyph Substitution Table](https://docs.microsoft.com/en-us/typography/opentype/spec/gsub).
57
- */
58
- #define HB_OT_TAG_GSUB HB_TAG('G','S','U','B')
59
- /**
60
- * HB_OT_TAG_GPOS:
61
- *
62
- * OpenType [Glyph Positioning Table](https://docs.microsoft.com/en-us/typography/opentype/spec/gpos).
63
- */
64
- #define HB_OT_TAG_GPOS HB_TAG('G','P','O','S')
65
- /**
66
- * HB_OT_TAG_JSTF:
67
- *
68
- * OpenType [Justification Table](https://docs.microsoft.com/en-us/typography/opentype/spec/jstf).
69
- */
70
- #define HB_OT_TAG_JSTF HB_TAG('J','S','T','F')
71
-
72
-
73
- /*
74
- * Script & Language tags.
75
- */
76
-
77
- /**
78
- * HB_OT_TAG_DEFAULT_SCRIPT:
79
- *
80
- * OpenType script tag, `DFLT`, for features that are not script-specific.
81
- *
82
- */
83
- #define HB_OT_TAG_DEFAULT_SCRIPT HB_TAG ('D', 'F', 'L', 'T')
84
- /**
85
- * HB_OT_TAG_DEFAULT_LANGUAGE:
86
- *
87
- * OpenType language tag, `dflt`. Not a valid language tag, but some fonts
88
- * mistakenly use it.
89
- */
90
- #define HB_OT_TAG_DEFAULT_LANGUAGE HB_TAG ('d', 'f', 'l', 't')
91
-
92
- /**
93
- * HB_OT_MAX_TAGS_PER_SCRIPT:
94
- *
95
- * Maximum number of OpenType tags that can correspond to a give #hb_script_t.
96
- *
97
- * Since: 2.0.0
98
- **/
99
- #define HB_OT_MAX_TAGS_PER_SCRIPT 3u
100
- /**
101
- * HB_OT_MAX_TAGS_PER_LANGUAGE:
102
- *
103
- * Maximum number of OpenType tags that can correspond to a give #hb_language_t.
104
- *
105
- * Since: 2.0.0
106
- **/
107
- #define HB_OT_MAX_TAGS_PER_LANGUAGE 3u
108
-
109
- HB_EXTERN void
110
- hb_ot_tags_from_script_and_language (hb_script_t script,
111
- hb_language_t language,
112
- unsigned int *script_count /* IN/OUT */,
113
- hb_tag_t *script_tags /* OUT */,
114
- unsigned int *language_count /* IN/OUT */,
115
- hb_tag_t *language_tags /* OUT */);
116
-
117
- HB_EXTERN hb_script_t
118
- hb_ot_tag_to_script (hb_tag_t tag);
119
-
120
- HB_EXTERN hb_language_t
121
- hb_ot_tag_to_language (hb_tag_t tag);
122
-
123
- HB_EXTERN void
124
- hb_ot_tags_to_script_and_language (hb_tag_t script_tag,
125
- hb_tag_t language_tag,
126
- hb_script_t *script /* OUT */,
127
- hb_language_t *language /* OUT */);
128
-
129
-
130
- /*
131
- * GDEF
132
- */
133
-
134
- HB_EXTERN hb_bool_t
135
- hb_ot_layout_has_glyph_classes (hb_face_t *face);
136
-
137
- /**
138
- * hb_ot_layout_glyph_class_t:
139
- * @HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED: Glyphs not matching the other classifications
140
- * @HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH: Spacing, single characters, capable of accepting marks
141
- * @HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE: Glyphs that represent ligation of multiple characters
142
- * @HB_OT_LAYOUT_GLYPH_CLASS_MARK: Non-spacing, combining glyphs that represent marks
143
- * @HB_OT_LAYOUT_GLYPH_CLASS_COMPONENT: Spacing glyphs that represent part of a single character
144
- *
145
- * The GDEF classes defined for glyphs.
146
- *
147
- **/
148
- typedef enum {
149
- HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED = 0,
150
- HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH = 1,
151
- HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE = 2,
152
- HB_OT_LAYOUT_GLYPH_CLASS_MARK = 3,
153
- HB_OT_LAYOUT_GLYPH_CLASS_COMPONENT = 4
154
- } hb_ot_layout_glyph_class_t;
155
-
156
- HB_EXTERN hb_ot_layout_glyph_class_t
157
- hb_ot_layout_get_glyph_class (hb_face_t *face,
158
- hb_codepoint_t glyph);
159
-
160
- HB_EXTERN void
161
- hb_ot_layout_get_glyphs_in_class (hb_face_t *face,
162
- hb_ot_layout_glyph_class_t klass,
163
- hb_set_t *glyphs /* OUT */);
164
-
165
- /* Not that useful. Provides list of attach points for a glyph that a
166
- * client may want to cache */
167
- HB_EXTERN unsigned int
168
- hb_ot_layout_get_attach_points (hb_face_t *face,
169
- hb_codepoint_t glyph,
170
- unsigned int start_offset,
171
- unsigned int *point_count /* IN/OUT */,
172
- unsigned int *point_array /* OUT */);
173
-
174
- /* Ligature caret positions */
175
- HB_EXTERN unsigned int
176
- hb_ot_layout_get_ligature_carets (hb_font_t *font,
177
- hb_direction_t direction,
178
- hb_codepoint_t glyph,
179
- unsigned int start_offset,
180
- unsigned int *caret_count /* IN/OUT */,
181
- hb_position_t *caret_array /* OUT */);
182
-
183
-
184
- /*
185
- * GSUB/GPOS feature query and enumeration interface
186
- */
187
-
188
- /**
189
- * HB_OT_LAYOUT_NO_SCRIPT_INDEX:
190
- *
191
- * Special value for script index indicating unsupported script.
192
- */
193
- #define HB_OT_LAYOUT_NO_SCRIPT_INDEX 0xFFFFu
194
- /**
195
- * HB_OT_LAYOUT_NO_FEATURE_INDEX:
196
- *
197
- * Special value for feature index indicating unsupported feature.
198
- */
199
- #define HB_OT_LAYOUT_NO_FEATURE_INDEX 0xFFFFu
200
- /**
201
- * HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX:
202
- *
203
- * Special value for language index indicating default or unsupported language.
204
- */
205
- #define HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX 0xFFFFu
206
- /**
207
- * HB_OT_LAYOUT_NO_VARIATIONS_INDEX:
208
- *
209
- * Special value for variations index indicating unsupported variation.
210
- */
211
- #define HB_OT_LAYOUT_NO_VARIATIONS_INDEX 0xFFFFFFFFu
212
-
213
- HB_EXTERN unsigned int
214
- hb_ot_layout_table_get_script_tags (hb_face_t *face,
215
- hb_tag_t table_tag,
216
- unsigned int start_offset,
217
- unsigned int *script_count /* IN/OUT */,
218
- hb_tag_t *script_tags /* OUT */);
219
-
220
- HB_EXTERN hb_bool_t
221
- hb_ot_layout_table_find_script (hb_face_t *face,
222
- hb_tag_t table_tag,
223
- hb_tag_t script_tag,
224
- unsigned int *script_index /* OUT */);
225
-
226
- HB_EXTERN hb_bool_t
227
- hb_ot_layout_table_select_script (hb_face_t *face,
228
- hb_tag_t table_tag,
229
- unsigned int script_count,
230
- const hb_tag_t *script_tags,
231
- unsigned int *script_index /* OUT */,
232
- hb_tag_t *chosen_script /* OUT */);
233
-
234
- HB_EXTERN unsigned int
235
- hb_ot_layout_table_get_feature_tags (hb_face_t *face,
236
- hb_tag_t table_tag,
237
- unsigned int start_offset,
238
- unsigned int *feature_count /* IN/OUT */,
239
- hb_tag_t *feature_tags /* OUT */);
240
-
241
- HB_EXTERN unsigned int
242
- hb_ot_layout_script_get_language_tags (hb_face_t *face,
243
- hb_tag_t table_tag,
244
- unsigned int script_index,
245
- unsigned int start_offset,
246
- unsigned int *language_count /* IN/OUT */,
247
- hb_tag_t *language_tags /* OUT */);
248
-
249
- HB_EXTERN hb_bool_t
250
- hb_ot_layout_script_select_language (hb_face_t *face,
251
- hb_tag_t table_tag,
252
- unsigned int script_index,
253
- unsigned int language_count,
254
- const hb_tag_t *language_tags,
255
- unsigned int *language_index /* OUT */);
256
-
257
- HB_EXTERN hb_bool_t
258
- hb_ot_layout_language_get_required_feature_index (hb_face_t *face,
259
- hb_tag_t table_tag,
260
- unsigned int script_index,
261
- unsigned int language_index,
262
- unsigned int *feature_index /* OUT */);
263
-
264
- HB_EXTERN hb_bool_t
265
- hb_ot_layout_language_get_required_feature (hb_face_t *face,
266
- hb_tag_t table_tag,
267
- unsigned int script_index,
268
- unsigned int language_index,
269
- unsigned int *feature_index /* OUT */,
270
- hb_tag_t *feature_tag /* OUT */);
271
-
272
- HB_EXTERN unsigned int
273
- hb_ot_layout_language_get_feature_indexes (hb_face_t *face,
274
- hb_tag_t table_tag,
275
- unsigned int script_index,
276
- unsigned int language_index,
277
- unsigned int start_offset,
278
- unsigned int *feature_count /* IN/OUT */,
279
- unsigned int *feature_indexes /* OUT */);
280
-
281
- HB_EXTERN unsigned int
282
- hb_ot_layout_language_get_feature_tags (hb_face_t *face,
283
- hb_tag_t table_tag,
284
- unsigned int script_index,
285
- unsigned int language_index,
286
- unsigned int start_offset,
287
- unsigned int *feature_count /* IN/OUT */,
288
- hb_tag_t *feature_tags /* OUT */);
289
-
290
- HB_EXTERN hb_bool_t
291
- hb_ot_layout_language_find_feature (hb_face_t *face,
292
- hb_tag_t table_tag,
293
- unsigned int script_index,
294
- unsigned int language_index,
295
- hb_tag_t feature_tag,
296
- unsigned int *feature_index /* OUT */);
297
-
298
- HB_EXTERN unsigned int
299
- hb_ot_layout_feature_get_lookups (hb_face_t *face,
300
- hb_tag_t table_tag,
301
- unsigned int feature_index,
302
- unsigned int start_offset,
303
- unsigned int *lookup_count /* IN/OUT */,
304
- unsigned int *lookup_indexes /* OUT */);
305
-
306
- HB_EXTERN unsigned int
307
- hb_ot_layout_table_get_lookup_count (hb_face_t *face,
308
- hb_tag_t table_tag);
309
-
310
- HB_EXTERN void
311
- hb_ot_layout_collect_features (hb_face_t *face,
312
- hb_tag_t table_tag,
313
- const hb_tag_t *scripts,
314
- const hb_tag_t *languages,
315
- const hb_tag_t *features,
316
- hb_set_t *feature_indexes /* OUT */);
317
-
318
- HB_EXTERN void
319
- hb_ot_layout_collect_lookups (hb_face_t *face,
320
- hb_tag_t table_tag,
321
- const hb_tag_t *scripts,
322
- const hb_tag_t *languages,
323
- const hb_tag_t *features,
324
- hb_set_t *lookup_indexes /* OUT */);
325
-
326
- HB_EXTERN void
327
- hb_ot_layout_lookup_collect_glyphs (hb_face_t *face,
328
- hb_tag_t table_tag,
329
- unsigned int lookup_index,
330
- hb_set_t *glyphs_before, /* OUT. May be NULL */
331
- hb_set_t *glyphs_input, /* OUT. May be NULL */
332
- hb_set_t *glyphs_after, /* OUT. May be NULL */
333
- hb_set_t *glyphs_output /* OUT. May be NULL */);
334
-
335
-
336
- /* Variations support */
337
-
338
- HB_EXTERN hb_bool_t
339
- hb_ot_layout_table_find_feature_variations (hb_face_t *face,
340
- hb_tag_t table_tag,
341
- const int *coords,
342
- unsigned int num_coords,
343
- unsigned int *variations_index /* out */);
344
-
345
- HB_EXTERN unsigned int
346
- hb_ot_layout_feature_with_variations_get_lookups (hb_face_t *face,
347
- hb_tag_t table_tag,
348
- unsigned int feature_index,
349
- unsigned int variations_index,
350
- unsigned int start_offset,
351
- unsigned int *lookup_count /* IN/OUT */,
352
- unsigned int *lookup_indexes /* OUT */);
353
-
354
-
355
- /*
356
- * GSUB
357
- */
358
-
359
- HB_EXTERN hb_bool_t
360
- hb_ot_layout_has_substitution (hb_face_t *face);
361
-
362
- HB_EXTERN unsigned
363
- hb_ot_layout_lookup_get_glyph_alternates (hb_face_t *face,
364
- unsigned lookup_index,
365
- hb_codepoint_t glyph,
366
- unsigned start_offset,
367
- unsigned *alternate_count /* IN/OUT */,
368
- hb_codepoint_t *alternate_glyphs /* OUT */);
369
-
370
- HB_EXTERN hb_bool_t
371
- hb_ot_layout_lookup_would_substitute (hb_face_t *face,
372
- unsigned int lookup_index,
373
- const hb_codepoint_t *glyphs,
374
- unsigned int glyphs_length,
375
- hb_bool_t zero_context);
376
-
377
- HB_EXTERN void
378
- hb_ot_layout_lookup_substitute_closure (hb_face_t *face,
379
- unsigned int lookup_index,
380
- hb_set_t *glyphs
381
- /*TODO , hb_bool_t inclusive */);
382
-
383
- HB_EXTERN void
384
- hb_ot_layout_lookups_substitute_closure (hb_face_t *face,
385
- const hb_set_t *lookups,
386
- hb_set_t *glyphs);
387
-
388
-
389
- /*
390
- * GPOS
391
- */
392
-
393
- HB_EXTERN hb_bool_t
394
- hb_ot_layout_has_positioning (hb_face_t *face);
395
-
396
- /* Optical 'size' feature info. Returns true if found.
397
- * https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#size */
398
- HB_EXTERN hb_bool_t
399
- hb_ot_layout_get_size_params (hb_face_t *face,
400
- unsigned int *design_size, /* OUT. May be NULL */
401
- unsigned int *subfamily_id, /* OUT. May be NULL */
402
- hb_ot_name_id_t *subfamily_name_id, /* OUT. May be NULL */
403
- unsigned int *range_start, /* OUT. May be NULL */
404
- unsigned int *range_end /* OUT. May be NULL */);
405
-
406
- HB_EXTERN hb_position_t
407
- hb_ot_layout_lookup_get_optical_bound (hb_font_t *font,
408
- unsigned lookup_index,
409
- hb_direction_t direction,
410
- hb_codepoint_t glyph);
411
-
412
-
413
- /*
414
- * GSUB/GPOS
415
- */
416
-
417
- HB_EXTERN hb_bool_t
418
- hb_ot_layout_feature_get_name_ids (hb_face_t *face,
419
- hb_tag_t table_tag,
420
- unsigned int feature_index,
421
- hb_ot_name_id_t *label_id /* OUT. May be NULL */,
422
- hb_ot_name_id_t *tooltip_id /* OUT. May be NULL */,
423
- hb_ot_name_id_t *sample_id /* OUT. May be NULL */,
424
- unsigned int *num_named_parameters /* OUT. May be NULL */,
425
- hb_ot_name_id_t *first_param_id /* OUT. May be NULL */);
426
-
427
-
428
- HB_EXTERN unsigned int
429
- hb_ot_layout_feature_get_characters (hb_face_t *face,
430
- hb_tag_t table_tag,
431
- unsigned int feature_index,
432
- unsigned int start_offset,
433
- unsigned int *char_count /* IN/OUT. May be NULL */,
434
- hb_codepoint_t *characters /* OUT. May be NULL */);
435
-
436
-
437
- /*
438
- * BASE
439
- */
440
-
441
- /**
442
- * hb_ot_layout_baseline_tag_t:
443
- * @HB_OT_LAYOUT_BASELINE_TAG_ROMAN: The baseline used by alphabetic scripts such as Latin, Cyrillic and Greek.
444
- * In vertical writing mode, the alphabetic baseline for characters rotated 90 degrees clockwise.
445
- * (This would not apply to alphabetic characters that remain upright in vertical writing mode, since these
446
- * characters are not rotated.)
447
- * @HB_OT_LAYOUT_BASELINE_TAG_HANGING: The hanging baseline. In horizontal direction, this is the horizontal
448
- * line from which syllables seem, to hang in Tibetan and other similar scripts. In vertical writing mode,
449
- * for Tibetan (or some other similar script) characters rotated 90 degrees clockwise.
450
- * @HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT: Ideographic character face bottom or left edge,
451
- * if the direction is horizontal or vertical, respectively.
452
- * @HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT: Ideographic character face top or right edge,
453
- * if the direction is horizontal or vertical, respectively.
454
- * @HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_CENTRAL: The center of the ideographic character face. Since: 4.0.0
455
- * @HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT: Ideographic em-box bottom or left edge,
456
- * if the direction is horizontal or vertical, respectively.
457
- * @HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT: Ideographic em-box top or right edge baseline,
458
- * @HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_CENTRAL: The center of the ideographic em-box. Since: 4.0.0
459
- * if the direction is horizontal or vertical, respectively.
460
- * @HB_OT_LAYOUT_BASELINE_TAG_MATH: The baseline about which mathematical characters are centered.
461
- * In vertical writing mode when mathematical characters rotated 90 degrees clockwise, are centered.
462
- *
463
- * Baseline tags from [Baseline Tags](https://docs.microsoft.com/en-us/typography/opentype/spec/baselinetags) registry.
464
- *
465
- * Since: 2.6.0
466
- */
467
- typedef enum {
468
- HB_OT_LAYOUT_BASELINE_TAG_ROMAN = HB_TAG ('r','o','m','n'),
469
- HB_OT_LAYOUT_BASELINE_TAG_HANGING = HB_TAG ('h','a','n','g'),
470
- HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_BOTTOM_OR_LEFT = HB_TAG ('i','c','f','b'),
471
- HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_TOP_OR_RIGHT = HB_TAG ('i','c','f','t'),
472
- HB_OT_LAYOUT_BASELINE_TAG_IDEO_FACE_CENTRAL = HB_TAG ('I','c','f','c'),
473
- HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_BOTTOM_OR_LEFT = HB_TAG ('i','d','e','o'),
474
- HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_TOP_OR_RIGHT = HB_TAG ('i','d','t','p'),
475
- HB_OT_LAYOUT_BASELINE_TAG_IDEO_EMBOX_CENTRAL = HB_TAG ('I','d','c','e'),
476
- HB_OT_LAYOUT_BASELINE_TAG_MATH = HB_TAG ('m','a','t','h'),
477
-
478
- /*< private >*/
479
- _HB_OT_LAYOUT_BASELINE_TAG_MAX_VALUE = HB_TAG_MAX_SIGNED /*< skip >*/
480
- } hb_ot_layout_baseline_tag_t;
481
-
482
- HB_EXTERN hb_ot_layout_baseline_tag_t
483
- hb_ot_layout_get_horizontal_baseline_tag_for_script (hb_script_t script);
484
-
485
- HB_EXTERN hb_bool_t
486
- hb_ot_layout_get_baseline (hb_font_t *font,
487
- hb_ot_layout_baseline_tag_t baseline_tag,
488
- hb_direction_t direction,
489
- hb_tag_t script_tag,
490
- hb_tag_t language_tag,
491
- hb_position_t *coord /* OUT. May be NULL. */);
492
-
493
- HB_EXTERN void
494
- hb_ot_layout_get_baseline_with_fallback (hb_font_t *font,
495
- hb_ot_layout_baseline_tag_t baseline_tag,
496
- hb_direction_t direction,
497
- hb_tag_t script_tag,
498
- hb_tag_t language_tag,
499
- hb_position_t *coord /* OUT */);
500
-
501
- HB_END_DECLS
502
-
503
- #endif /* HB_OT_LAYOUT_H */