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.
Files changed (171) hide show
  1. package/package.json +4 -2
  2. package/dist/js/jassub-worker-modern.js +0 -128
  3. package/dist/js/jassub-worker-modern.wasm +0 -0
  4. package/dist/js/jassub-worker.js +0 -128
  5. package/dist/js/jassub-worker.wasm +0 -0
  6. package/dist/js/jassub-worker.wasm.js +0 -84
  7. package/dist/js/jassub.js +0 -832
  8. package/dist/libraries/bin/brotli.js +0 -1
  9. package/dist/libraries/include/ass/ass.h +0 -812
  10. package/dist/libraries/include/ass/ass_types.h +0 -292
  11. package/dist/libraries/include/brotli/decode.h +0 -344
  12. package/dist/libraries/include/brotli/encode.h +0 -448
  13. package/dist/libraries/include/brotli/port.h +0 -288
  14. package/dist/libraries/include/brotli/types.h +0 -83
  15. package/dist/libraries/include/expat.h +0 -1064
  16. package/dist/libraries/include/expat_config.h +0 -115
  17. package/dist/libraries/include/expat_external.h +0 -165
  18. package/dist/libraries/include/fontconfig/fcfreetype.h +0 -59
  19. package/dist/libraries/include/fontconfig/fcprivate.h +0 -134
  20. package/dist/libraries/include/fontconfig/fontconfig.h +0 -1154
  21. package/dist/libraries/include/freetype2/freetype/config/ftconfig.h +0 -63
  22. package/dist/libraries/include/freetype2/freetype/config/ftheader.h +0 -824
  23. package/dist/libraries/include/freetype2/freetype/config/ftmodule.h +0 -20
  24. package/dist/libraries/include/freetype2/freetype/config/ftoption.h +0 -1011
  25. package/dist/libraries/include/freetype2/freetype/config/ftstdlib.h +0 -175
  26. package/dist/libraries/include/freetype2/freetype/config/integer-types.h +0 -245
  27. package/dist/libraries/include/freetype2/freetype/config/mac-support.h +0 -49
  28. package/dist/libraries/include/freetype2/freetype/config/public-macros.h +0 -120
  29. package/dist/libraries/include/freetype2/freetype/freetype.h +0 -4833
  30. package/dist/libraries/include/freetype2/freetype/ftadvanc.h +0 -188
  31. package/dist/libraries/include/freetype2/freetype/ftbbox.h +0 -101
  32. package/dist/libraries/include/freetype2/freetype/ftbdf.h +0 -212
  33. package/dist/libraries/include/freetype2/freetype/ftbitmap.h +0 -329
  34. package/dist/libraries/include/freetype2/freetype/ftbzip2.h +0 -102
  35. package/dist/libraries/include/freetype2/freetype/ftcache.h +0 -1087
  36. package/dist/libraries/include/freetype2/freetype/ftchapters.h +0 -147
  37. package/dist/libraries/include/freetype2/freetype/ftcid.h +0 -167
  38. package/dist/libraries/include/freetype2/freetype/ftcolor.h +0 -1609
  39. package/dist/libraries/include/freetype2/freetype/ftdriver.h +0 -1193
  40. package/dist/libraries/include/freetype2/freetype/fterrdef.h +0 -279
  41. package/dist/libraries/include/freetype2/freetype/fterrors.h +0 -296
  42. package/dist/libraries/include/freetype2/freetype/ftfntfmt.h +0 -93
  43. package/dist/libraries/include/freetype2/freetype/ftgasp.h +0 -143
  44. package/dist/libraries/include/freetype2/freetype/ftglyph.h +0 -664
  45. package/dist/libraries/include/freetype2/freetype/ftgxval.h +0 -354
  46. package/dist/libraries/include/freetype2/freetype/ftgzip.h +0 -151
  47. package/dist/libraries/include/freetype2/freetype/ftimage.h +0 -1276
  48. package/dist/libraries/include/freetype2/freetype/ftincrem.h +0 -348
  49. package/dist/libraries/include/freetype2/freetype/ftlcdfil.h +0 -323
  50. package/dist/libraries/include/freetype2/freetype/ftlist.h +0 -296
  51. package/dist/libraries/include/freetype2/freetype/ftlogging.h +0 -184
  52. package/dist/libraries/include/freetype2/freetype/ftlzw.h +0 -100
  53. package/dist/libraries/include/freetype2/freetype/ftmac.h +0 -289
  54. package/dist/libraries/include/freetype2/freetype/ftmm.h +0 -752
  55. package/dist/libraries/include/freetype2/freetype/ftmodapi.h +0 -806
  56. package/dist/libraries/include/freetype2/freetype/ftmoderr.h +0 -204
  57. package/dist/libraries/include/freetype2/freetype/ftotval.h +0 -206
  58. package/dist/libraries/include/freetype2/freetype/ftoutln.h +0 -586
  59. package/dist/libraries/include/freetype2/freetype/ftparams.h +0 -203
  60. package/dist/libraries/include/freetype2/freetype/ftpfr.h +0 -179
  61. package/dist/libraries/include/freetype2/freetype/ftrender.h +0 -244
  62. package/dist/libraries/include/freetype2/freetype/ftsizes.h +0 -159
  63. package/dist/libraries/include/freetype2/freetype/ftsnames.h +0 -272
  64. package/dist/libraries/include/freetype2/freetype/ftstroke.h +0 -773
  65. package/dist/libraries/include/freetype2/freetype/ftsynth.h +0 -83
  66. package/dist/libraries/include/freetype2/freetype/ftsystem.h +0 -352
  67. package/dist/libraries/include/freetype2/freetype/fttrigon.h +0 -350
  68. package/dist/libraries/include/freetype2/freetype/fttypes.h +0 -615
  69. package/dist/libraries/include/freetype2/freetype/ftwinfnt.h +0 -276
  70. package/dist/libraries/include/freetype2/freetype/t1tables.h +0 -773
  71. package/dist/libraries/include/freetype2/freetype/ttnameid.h +0 -1235
  72. package/dist/libraries/include/freetype2/freetype/tttables.h +0 -855
  73. package/dist/libraries/include/freetype2/freetype/tttags.h +0 -123
  74. package/dist/libraries/include/freetype2/ft2build.h +0 -42
  75. package/dist/libraries/include/fribidi/fribidi-arabic.h +0 -81
  76. package/dist/libraries/include/fribidi/fribidi-begindecls.h +0 -3
  77. package/dist/libraries/include/fribidi/fribidi-bidi-types-list.h +0 -96
  78. package/dist/libraries/include/fribidi/fribidi-bidi-types.h +0 -405
  79. package/dist/libraries/include/fribidi/fribidi-bidi.h +0 -142
  80. package/dist/libraries/include/fribidi/fribidi-brackets.h +0 -89
  81. package/dist/libraries/include/fribidi/fribidi-char-sets-list.h +0 -54
  82. package/dist/libraries/include/fribidi/fribidi-char-sets.h +0 -106
  83. package/dist/libraries/include/fribidi/fribidi-common.h +0 -158
  84. package/dist/libraries/include/fribidi/fribidi-config.h +0 -23
  85. package/dist/libraries/include/fribidi/fribidi-deprecated.h +0 -175
  86. package/dist/libraries/include/fribidi/fribidi-enddecls.h +0 -3
  87. package/dist/libraries/include/fribidi/fribidi-flags.h +0 -72
  88. package/dist/libraries/include/fribidi/fribidi-joining-types-list.h +0 -44
  89. package/dist/libraries/include/fribidi/fribidi-joining-types.h +0 -249
  90. package/dist/libraries/include/fribidi/fribidi-joining.h +0 -74
  91. package/dist/libraries/include/fribidi/fribidi-mirroring.h +0 -86
  92. package/dist/libraries/include/fribidi/fribidi-shape.h +0 -71
  93. package/dist/libraries/include/fribidi/fribidi-types.h +0 -79
  94. package/dist/libraries/include/fribidi/fribidi-unicode-version.h +0 -10
  95. package/dist/libraries/include/fribidi/fribidi-unicode.h +0 -105
  96. package/dist/libraries/include/fribidi/fribidi.h +0 -129
  97. package/dist/libraries/include/harfbuzz/hb-aat-layout.h +0 -795
  98. package/dist/libraries/include/harfbuzz/hb-aat.h +0 -38
  99. package/dist/libraries/include/harfbuzz/hb-blob.h +0 -160
  100. package/dist/libraries/include/harfbuzz/hb-buffer.h +0 -799
  101. package/dist/libraries/include/harfbuzz/hb-common.h +0 -902
  102. package/dist/libraries/include/harfbuzz/hb-cplusplus.hh +0 -221
  103. package/dist/libraries/include/harfbuzz/hb-deprecated.h +0 -251
  104. package/dist/libraries/include/harfbuzz/hb-draw.h +0 -325
  105. package/dist/libraries/include/harfbuzz/hb-face.h +0 -181
  106. package/dist/libraries/include/harfbuzz/hb-font.h +0 -1108
  107. package/dist/libraries/include/harfbuzz/hb-ft.h +0 -145
  108. package/dist/libraries/include/harfbuzz/hb-map.h +0 -124
  109. package/dist/libraries/include/harfbuzz/hb-ot-color.h +0 -146
  110. package/dist/libraries/include/harfbuzz/hb-ot-deprecated.h +0 -141
  111. package/dist/libraries/include/harfbuzz/hb-ot-font.h +0 -45
  112. package/dist/libraries/include/harfbuzz/hb-ot-layout.h +0 -503
  113. package/dist/libraries/include/harfbuzz/hb-ot-math.h +0 -333
  114. package/dist/libraries/include/harfbuzz/hb-ot-meta.h +0 -72
  115. package/dist/libraries/include/harfbuzz/hb-ot-metrics.h +0 -129
  116. package/dist/libraries/include/harfbuzz/hb-ot-name.h +0 -158
  117. package/dist/libraries/include/harfbuzz/hb-ot-shape.h +0 -53
  118. package/dist/libraries/include/harfbuzz/hb-ot-var.h +0 -191
  119. package/dist/libraries/include/harfbuzz/hb-ot.h +0 -49
  120. package/dist/libraries/include/harfbuzz/hb-set.h +0 -200
  121. package/dist/libraries/include/harfbuzz/hb-shape-plan.h +0 -122
  122. package/dist/libraries/include/harfbuzz/hb-shape.h +0 -62
  123. package/dist/libraries/include/harfbuzz/hb-style.h +0 -81
  124. package/dist/libraries/include/harfbuzz/hb-subset-repacker.h +0 -81
  125. package/dist/libraries/include/harfbuzz/hb-subset.h +0 -234
  126. package/dist/libraries/include/harfbuzz/hb-unicode.h +0 -643
  127. package/dist/libraries/include/harfbuzz/hb-version.h +0 -95
  128. package/dist/libraries/include/harfbuzz/hb.h +0 -50
  129. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config-version.cmake +0 -70
  130. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config.cmake +0 -99
  131. package/dist/libraries/lib/cmake/expat-2.4.7/expat-noconfig.cmake +0 -19
  132. package/dist/libraries/lib/cmake/expat-2.4.7/expat.cmake +0 -99
  133. package/dist/libraries/lib/libass.a +0 -0
  134. package/dist/libraries/lib/libass.la +0 -41
  135. package/dist/libraries/lib/libbrotlicommon.a +0 -0
  136. package/dist/libraries/lib/libbrotlidec.a +0 -0
  137. package/dist/libraries/lib/libbrotlienc.a +0 -0
  138. package/dist/libraries/lib/libexpat.a +0 -0
  139. package/dist/libraries/lib/libfontconfig.a +0 -0
  140. package/dist/libraries/lib/libfontconfig.la +0 -41
  141. package/dist/libraries/lib/libfreetype.a +0 -0
  142. package/dist/libraries/lib/libfreetype.la +0 -41
  143. package/dist/libraries/lib/libfribidi.a +0 -0
  144. package/dist/libraries/lib/libfribidi.la +0 -41
  145. package/dist/libraries/lib/libharfbuzz-subset.a +0 -0
  146. package/dist/libraries/lib/libharfbuzz-subset.la +0 -41
  147. package/dist/libraries/lib/libharfbuzz.a +0 -0
  148. package/dist/libraries/lib/libharfbuzz.la +0 -41
  149. package/dist/libraries/lib/pkgconfig/expat.pc +0 -11
  150. package/dist/libraries/lib/pkgconfig/fontconfig.pc +0 -18
  151. package/dist/libraries/lib/pkgconfig/freetype2.pc +0 -14
  152. package/dist/libraries/lib/pkgconfig/fribidi.pc +0 -13
  153. package/dist/libraries/lib/pkgconfig/harfbuzz-subset.pc +0 -12
  154. package/dist/libraries/lib/pkgconfig/harfbuzz.pc +0 -13
  155. package/dist/libraries/lib/pkgconfig/libass.pc +0 -13
  156. package/dist/libraries/lib/pkgconfig/libbrotlicommon.pc +0 -11
  157. package/dist/libraries/lib/pkgconfig/libbrotlidec.pc +0 -12
  158. package/dist/libraries/lib/pkgconfig/libbrotlienc.pc +0 -12
  159. package/dist/libraries/share/aclocal/freetype2.m4 +0 -194
  160. package/dist/libraries/share/doc/expat/AUTHORS +0 -10
  161. package/dist/libraries/share/doc/expat/changelog +0 -1161
  162. package/dist/license/all +0 -951
  163. package/dist/license/all.tmp +0 -307
  164. package/dist/license/brotli +0 -12
  165. package/dist/license/expat +0 -71
  166. package/dist/license/fontconfig +0 -46
  167. package/dist/license/freetype +0 -92
  168. package/dist/license/fribidi +0 -15
  169. package/dist/license/harfbuzz +0 -32
  170. package/dist/license/jassub +0 -0
  171. package/dist/license/libass +0 -28
@@ -1,159 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * ftsizes.h
4
- *
5
- * FreeType size objects management (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
- * Typical application would normally not need to use these functions.
22
- * However, they have been placed in a public API for the rare cases where
23
- * they are needed.
24
- *
25
- */
26
-
27
-
28
- #ifndef FTSIZES_H_
29
- #define FTSIZES_H_
30
-
31
-
32
- #include <freetype/freetype.h>
33
-
34
- #ifdef FREETYPE_H
35
- #error "freetype.h of FreeType 1 has been loaded!"
36
- #error "Please fix the directory search order for header files"
37
- #error "so that freetype.h of FreeType 2 is found first."
38
- #endif
39
-
40
-
41
- FT_BEGIN_HEADER
42
-
43
-
44
- /**************************************************************************
45
- *
46
- * @section:
47
- * sizes_management
48
- *
49
- * @title:
50
- * Size Management
51
- *
52
- * @abstract:
53
- * Managing multiple sizes per face.
54
- *
55
- * @description:
56
- * When creating a new face object (e.g., with @FT_New_Face), an @FT_Size
57
- * object is automatically created and used to store all pixel-size
58
- * dependent information, available in the `face->size` field.
59
- *
60
- * It is however possible to create more sizes for a given face, mostly
61
- * in order to manage several character pixel sizes of the same font
62
- * family and style. See @FT_New_Size and @FT_Done_Size.
63
- *
64
- * Note that @FT_Set_Pixel_Sizes and @FT_Set_Char_Size only modify the
65
- * contents of the current 'active' size; you thus need to use
66
- * @FT_Activate_Size to change it.
67
- *
68
- * 99% of applications won't need the functions provided here, especially
69
- * if they use the caching sub-system, so be cautious when using these.
70
- *
71
- */
72
-
73
-
74
- /**************************************************************************
75
- *
76
- * @function:
77
- * FT_New_Size
78
- *
79
- * @description:
80
- * Create a new size object from a given face object.
81
- *
82
- * @input:
83
- * face ::
84
- * A handle to a parent face object.
85
- *
86
- * @output:
87
- * asize ::
88
- * A handle to a new size object.
89
- *
90
- * @return:
91
- * FreeType error code. 0~means success.
92
- *
93
- * @note:
94
- * You need to call @FT_Activate_Size in order to select the new size for
95
- * upcoming calls to @FT_Set_Pixel_Sizes, @FT_Set_Char_Size,
96
- * @FT_Load_Glyph, @FT_Load_Char, etc.
97
- */
98
- FT_EXPORT( FT_Error )
99
- FT_New_Size( FT_Face face,
100
- FT_Size* size );
101
-
102
-
103
- /**************************************************************************
104
- *
105
- * @function:
106
- * FT_Done_Size
107
- *
108
- * @description:
109
- * Discard a given size object. Note that @FT_Done_Face automatically
110
- * discards all size objects allocated with @FT_New_Size.
111
- *
112
- * @input:
113
- * size ::
114
- * A handle to a target size object.
115
- *
116
- * @return:
117
- * FreeType error code. 0~means success.
118
- */
119
- FT_EXPORT( FT_Error )
120
- FT_Done_Size( FT_Size size );
121
-
122
-
123
- /**************************************************************************
124
- *
125
- * @function:
126
- * FT_Activate_Size
127
- *
128
- * @description:
129
- * Even though it is possible to create several size objects for a given
130
- * face (see @FT_New_Size for details), functions like @FT_Load_Glyph or
131
- * @FT_Load_Char only use the one that has been activated last to
132
- * determine the 'current character pixel size'.
133
- *
134
- * This function can be used to 'activate' a previously created size
135
- * object.
136
- *
137
- * @input:
138
- * size ::
139
- * A handle to a target size object.
140
- *
141
- * @return:
142
- * FreeType error code. 0~means success.
143
- *
144
- * @note:
145
- * If `face` is the size's parent face object, this function changes the
146
- * value of `face->size` to the input size handle.
147
- */
148
- FT_EXPORT( FT_Error )
149
- FT_Activate_Size( FT_Size size );
150
-
151
- /* */
152
-
153
-
154
- FT_END_HEADER
155
-
156
- #endif /* FTSIZES_H_ */
157
-
158
-
159
- /* END */
@@ -1,272 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * ftsnames.h
4
- *
5
- * Simple interface to access SFNT 'name' tables (which are used
6
- * to hold font names, copyright info, notices, etc.) (specification).
7
- *
8
- * This is _not_ used to retrieve glyph names!
9
- *
10
- * Copyright (C) 1996-2021 by
11
- * David Turner, Robert Wilhelm, and Werner Lemberg.
12
- *
13
- * This file is part of the FreeType project, and may only be used,
14
- * modified, and distributed under the terms of the FreeType project
15
- * license, LICENSE.TXT. By continuing to use, modify, or distribute
16
- * this file you indicate that you have read the license and
17
- * understand and accept it fully.
18
- *
19
- */
20
-
21
-
22
- #ifndef FTSNAMES_H_
23
- #define FTSNAMES_H_
24
-
25
-
26
- #include <freetype/freetype.h>
27
- #include <freetype/ftparams.h>
28
-
29
- #ifdef FREETYPE_H
30
- #error "freetype.h of FreeType 1 has been loaded!"
31
- #error "Please fix the directory search order for header files"
32
- #error "so that freetype.h of FreeType 2 is found first."
33
- #endif
34
-
35
-
36
- FT_BEGIN_HEADER
37
-
38
-
39
- /**************************************************************************
40
- *
41
- * @section:
42
- * sfnt_names
43
- *
44
- * @title:
45
- * SFNT Names
46
- *
47
- * @abstract:
48
- * Access the names embedded in TrueType and OpenType files.
49
- *
50
- * @description:
51
- * The TrueType and OpenType specifications allow the inclusion of a
52
- * special names table ('name') in font files. This table contains
53
- * textual (and internationalized) information regarding the font, like
54
- * family name, copyright, version, etc.
55
- *
56
- * The definitions below are used to access them if available.
57
- *
58
- * Note that this has nothing to do with glyph names!
59
- *
60
- */
61
-
62
-
63
- /**************************************************************************
64
- *
65
- * @struct:
66
- * FT_SfntName
67
- *
68
- * @description:
69
- * A structure used to model an SFNT 'name' table entry.
70
- *
71
- * @fields:
72
- * platform_id ::
73
- * The platform ID for `string`. See @TT_PLATFORM_XXX for possible
74
- * values.
75
- *
76
- * encoding_id ::
77
- * The encoding ID for `string`. See @TT_APPLE_ID_XXX, @TT_MAC_ID_XXX,
78
- * @TT_ISO_ID_XXX, @TT_MS_ID_XXX, and @TT_ADOBE_ID_XXX for possible
79
- * values.
80
- *
81
- * language_id ::
82
- * The language ID for `string`. See @TT_MAC_LANGID_XXX and
83
- * @TT_MS_LANGID_XXX for possible values.
84
- *
85
- * Registered OpenType values for `language_id` are always smaller than
86
- * 0x8000; values equal or larger than 0x8000 usually indicate a
87
- * language tag string (introduced in OpenType version 1.6). Use
88
- * function @FT_Get_Sfnt_LangTag with `language_id` as its argument to
89
- * retrieve the associated language tag.
90
- *
91
- * name_id ::
92
- * An identifier for `string`. See @TT_NAME_ID_XXX for possible
93
- * values.
94
- *
95
- * string ::
96
- * The 'name' string. Note that its format differs depending on the
97
- * (platform,encoding) pair, being either a string of bytes (without a
98
- * terminating `NULL` byte) or containing UTF-16BE entities.
99
- *
100
- * string_len ::
101
- * The length of `string` in bytes.
102
- *
103
- * @note:
104
- * Please refer to the TrueType or OpenType specification for more
105
- * details.
106
- */
107
- typedef struct FT_SfntName_
108
- {
109
- FT_UShort platform_id;
110
- FT_UShort encoding_id;
111
- FT_UShort language_id;
112
- FT_UShort name_id;
113
-
114
- FT_Byte* string; /* this string is *not* null-terminated! */
115
- FT_UInt string_len; /* in bytes */
116
-
117
- } FT_SfntName;
118
-
119
-
120
- /**************************************************************************
121
- *
122
- * @function:
123
- * FT_Get_Sfnt_Name_Count
124
- *
125
- * @description:
126
- * Retrieve the number of name strings in the SFNT 'name' table.
127
- *
128
- * @input:
129
- * face ::
130
- * A handle to the source face.
131
- *
132
- * @return:
133
- * The number of strings in the 'name' table.
134
- *
135
- * @note:
136
- * This function always returns an error if the config macro
137
- * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
138
- */
139
- FT_EXPORT( FT_UInt )
140
- FT_Get_Sfnt_Name_Count( FT_Face face );
141
-
142
-
143
- /**************************************************************************
144
- *
145
- * @function:
146
- * FT_Get_Sfnt_Name
147
- *
148
- * @description:
149
- * Retrieve a string of the SFNT 'name' table for a given index.
150
- *
151
- * @input:
152
- * face ::
153
- * A handle to the source face.
154
- *
155
- * idx ::
156
- * The index of the 'name' string.
157
- *
158
- * @output:
159
- * aname ::
160
- * The indexed @FT_SfntName structure.
161
- *
162
- * @return:
163
- * FreeType error code. 0~means success.
164
- *
165
- * @note:
166
- * The `string` array returned in the `aname` structure is not
167
- * null-terminated. Note that you don't have to deallocate `string` by
168
- * yourself; FreeType takes care of it if you call @FT_Done_Face.
169
- *
170
- * Use @FT_Get_Sfnt_Name_Count to get the total number of available
171
- * 'name' table entries, then do a loop until you get the right platform,
172
- * encoding, and name ID.
173
- *
174
- * 'name' table format~1 entries can use language tags also, see
175
- * @FT_Get_Sfnt_LangTag.
176
- *
177
- * This function always returns an error if the config macro
178
- * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
179
- */
180
- FT_EXPORT( FT_Error )
181
- FT_Get_Sfnt_Name( FT_Face face,
182
- FT_UInt idx,
183
- FT_SfntName *aname );
184
-
185
-
186
- /**************************************************************************
187
- *
188
- * @struct:
189
- * FT_SfntLangTag
190
- *
191
- * @description:
192
- * A structure to model a language tag entry from an SFNT 'name' table.
193
- *
194
- * @fields:
195
- * string ::
196
- * The language tag string, encoded in UTF-16BE (without trailing
197
- * `NULL` bytes).
198
- *
199
- * string_len ::
200
- * The length of `string` in **bytes**.
201
- *
202
- * @note:
203
- * Please refer to the TrueType or OpenType specification for more
204
- * details.
205
- *
206
- * @since:
207
- * 2.8
208
- */
209
- typedef struct FT_SfntLangTag_
210
- {
211
- FT_Byte* string; /* this string is *not* null-terminated! */
212
- FT_UInt string_len; /* in bytes */
213
-
214
- } FT_SfntLangTag;
215
-
216
-
217
- /**************************************************************************
218
- *
219
- * @function:
220
- * FT_Get_Sfnt_LangTag
221
- *
222
- * @description:
223
- * Retrieve the language tag associated with a language ID of an SFNT
224
- * 'name' table entry.
225
- *
226
- * @input:
227
- * face ::
228
- * A handle to the source face.
229
- *
230
- * langID ::
231
- * The language ID, as returned by @FT_Get_Sfnt_Name. This is always a
232
- * value larger than 0x8000.
233
- *
234
- * @output:
235
- * alangTag ::
236
- * The language tag associated with the 'name' table entry's language
237
- * ID.
238
- *
239
- * @return:
240
- * FreeType error code. 0~means success.
241
- *
242
- * @note:
243
- * The `string` array returned in the `alangTag` structure is not
244
- * null-terminated. Note that you don't have to deallocate `string` by
245
- * yourself; FreeType takes care of it if you call @FT_Done_Face.
246
- *
247
- * Only 'name' table format~1 supports language tags. For format~0
248
- * tables, this function always returns FT_Err_Invalid_Table. For
249
- * invalid format~1 language ID values, FT_Err_Invalid_Argument is
250
- * returned.
251
- *
252
- * This function always returns an error if the config macro
253
- * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
254
- *
255
- * @since:
256
- * 2.8
257
- */
258
- FT_EXPORT( FT_Error )
259
- FT_Get_Sfnt_LangTag( FT_Face face,
260
- FT_UInt langID,
261
- FT_SfntLangTag *alangTag );
262
-
263
-
264
- /* */
265
-
266
-
267
- FT_END_HEADER
268
-
269
- #endif /* FTSNAMES_H_ */
270
-
271
-
272
- /* END */