jassub 1.7.13 → 1.7.15

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 (172) hide show
  1. package/dist/jassub-worker.js +6 -6
  2. package/package.json +4 -2
  3. package/dist/js/jassub-worker-modern.js +0 -128
  4. package/dist/js/jassub-worker-modern.wasm +0 -0
  5. package/dist/js/jassub-worker.js +0 -128
  6. package/dist/js/jassub-worker.wasm +0 -0
  7. package/dist/js/jassub-worker.wasm.js +0 -84
  8. package/dist/js/jassub.js +0 -832
  9. package/dist/libraries/bin/brotli.js +0 -1
  10. package/dist/libraries/include/ass/ass.h +0 -812
  11. package/dist/libraries/include/ass/ass_types.h +0 -292
  12. package/dist/libraries/include/brotli/decode.h +0 -344
  13. package/dist/libraries/include/brotli/encode.h +0 -448
  14. package/dist/libraries/include/brotli/port.h +0 -288
  15. package/dist/libraries/include/brotli/types.h +0 -83
  16. package/dist/libraries/include/expat.h +0 -1064
  17. package/dist/libraries/include/expat_config.h +0 -115
  18. package/dist/libraries/include/expat_external.h +0 -165
  19. package/dist/libraries/include/fontconfig/fcfreetype.h +0 -59
  20. package/dist/libraries/include/fontconfig/fcprivate.h +0 -134
  21. package/dist/libraries/include/fontconfig/fontconfig.h +0 -1154
  22. package/dist/libraries/include/freetype2/freetype/config/ftconfig.h +0 -63
  23. package/dist/libraries/include/freetype2/freetype/config/ftheader.h +0 -824
  24. package/dist/libraries/include/freetype2/freetype/config/ftmodule.h +0 -20
  25. package/dist/libraries/include/freetype2/freetype/config/ftoption.h +0 -1011
  26. package/dist/libraries/include/freetype2/freetype/config/ftstdlib.h +0 -175
  27. package/dist/libraries/include/freetype2/freetype/config/integer-types.h +0 -245
  28. package/dist/libraries/include/freetype2/freetype/config/mac-support.h +0 -49
  29. package/dist/libraries/include/freetype2/freetype/config/public-macros.h +0 -120
  30. package/dist/libraries/include/freetype2/freetype/freetype.h +0 -4833
  31. package/dist/libraries/include/freetype2/freetype/ftadvanc.h +0 -188
  32. package/dist/libraries/include/freetype2/freetype/ftbbox.h +0 -101
  33. package/dist/libraries/include/freetype2/freetype/ftbdf.h +0 -212
  34. package/dist/libraries/include/freetype2/freetype/ftbitmap.h +0 -329
  35. package/dist/libraries/include/freetype2/freetype/ftbzip2.h +0 -102
  36. package/dist/libraries/include/freetype2/freetype/ftcache.h +0 -1087
  37. package/dist/libraries/include/freetype2/freetype/ftchapters.h +0 -147
  38. package/dist/libraries/include/freetype2/freetype/ftcid.h +0 -167
  39. package/dist/libraries/include/freetype2/freetype/ftcolor.h +0 -1609
  40. package/dist/libraries/include/freetype2/freetype/ftdriver.h +0 -1193
  41. package/dist/libraries/include/freetype2/freetype/fterrdef.h +0 -279
  42. package/dist/libraries/include/freetype2/freetype/fterrors.h +0 -296
  43. package/dist/libraries/include/freetype2/freetype/ftfntfmt.h +0 -93
  44. package/dist/libraries/include/freetype2/freetype/ftgasp.h +0 -143
  45. package/dist/libraries/include/freetype2/freetype/ftglyph.h +0 -664
  46. package/dist/libraries/include/freetype2/freetype/ftgxval.h +0 -354
  47. package/dist/libraries/include/freetype2/freetype/ftgzip.h +0 -151
  48. package/dist/libraries/include/freetype2/freetype/ftimage.h +0 -1276
  49. package/dist/libraries/include/freetype2/freetype/ftincrem.h +0 -348
  50. package/dist/libraries/include/freetype2/freetype/ftlcdfil.h +0 -323
  51. package/dist/libraries/include/freetype2/freetype/ftlist.h +0 -296
  52. package/dist/libraries/include/freetype2/freetype/ftlogging.h +0 -184
  53. package/dist/libraries/include/freetype2/freetype/ftlzw.h +0 -100
  54. package/dist/libraries/include/freetype2/freetype/ftmac.h +0 -289
  55. package/dist/libraries/include/freetype2/freetype/ftmm.h +0 -752
  56. package/dist/libraries/include/freetype2/freetype/ftmodapi.h +0 -806
  57. package/dist/libraries/include/freetype2/freetype/ftmoderr.h +0 -204
  58. package/dist/libraries/include/freetype2/freetype/ftotval.h +0 -206
  59. package/dist/libraries/include/freetype2/freetype/ftoutln.h +0 -586
  60. package/dist/libraries/include/freetype2/freetype/ftparams.h +0 -203
  61. package/dist/libraries/include/freetype2/freetype/ftpfr.h +0 -179
  62. package/dist/libraries/include/freetype2/freetype/ftrender.h +0 -244
  63. package/dist/libraries/include/freetype2/freetype/ftsizes.h +0 -159
  64. package/dist/libraries/include/freetype2/freetype/ftsnames.h +0 -272
  65. package/dist/libraries/include/freetype2/freetype/ftstroke.h +0 -773
  66. package/dist/libraries/include/freetype2/freetype/ftsynth.h +0 -83
  67. package/dist/libraries/include/freetype2/freetype/ftsystem.h +0 -352
  68. package/dist/libraries/include/freetype2/freetype/fttrigon.h +0 -350
  69. package/dist/libraries/include/freetype2/freetype/fttypes.h +0 -615
  70. package/dist/libraries/include/freetype2/freetype/ftwinfnt.h +0 -276
  71. package/dist/libraries/include/freetype2/freetype/t1tables.h +0 -773
  72. package/dist/libraries/include/freetype2/freetype/ttnameid.h +0 -1235
  73. package/dist/libraries/include/freetype2/freetype/tttables.h +0 -855
  74. package/dist/libraries/include/freetype2/freetype/tttags.h +0 -123
  75. package/dist/libraries/include/freetype2/ft2build.h +0 -42
  76. package/dist/libraries/include/fribidi/fribidi-arabic.h +0 -81
  77. package/dist/libraries/include/fribidi/fribidi-begindecls.h +0 -3
  78. package/dist/libraries/include/fribidi/fribidi-bidi-types-list.h +0 -96
  79. package/dist/libraries/include/fribidi/fribidi-bidi-types.h +0 -405
  80. package/dist/libraries/include/fribidi/fribidi-bidi.h +0 -142
  81. package/dist/libraries/include/fribidi/fribidi-brackets.h +0 -89
  82. package/dist/libraries/include/fribidi/fribidi-char-sets-list.h +0 -54
  83. package/dist/libraries/include/fribidi/fribidi-char-sets.h +0 -106
  84. package/dist/libraries/include/fribidi/fribidi-common.h +0 -158
  85. package/dist/libraries/include/fribidi/fribidi-config.h +0 -23
  86. package/dist/libraries/include/fribidi/fribidi-deprecated.h +0 -175
  87. package/dist/libraries/include/fribidi/fribidi-enddecls.h +0 -3
  88. package/dist/libraries/include/fribidi/fribidi-flags.h +0 -72
  89. package/dist/libraries/include/fribidi/fribidi-joining-types-list.h +0 -44
  90. package/dist/libraries/include/fribidi/fribidi-joining-types.h +0 -249
  91. package/dist/libraries/include/fribidi/fribidi-joining.h +0 -74
  92. package/dist/libraries/include/fribidi/fribidi-mirroring.h +0 -86
  93. package/dist/libraries/include/fribidi/fribidi-shape.h +0 -71
  94. package/dist/libraries/include/fribidi/fribidi-types.h +0 -79
  95. package/dist/libraries/include/fribidi/fribidi-unicode-version.h +0 -10
  96. package/dist/libraries/include/fribidi/fribidi-unicode.h +0 -105
  97. package/dist/libraries/include/fribidi/fribidi.h +0 -129
  98. package/dist/libraries/include/harfbuzz/hb-aat-layout.h +0 -795
  99. package/dist/libraries/include/harfbuzz/hb-aat.h +0 -38
  100. package/dist/libraries/include/harfbuzz/hb-blob.h +0 -160
  101. package/dist/libraries/include/harfbuzz/hb-buffer.h +0 -799
  102. package/dist/libraries/include/harfbuzz/hb-common.h +0 -902
  103. package/dist/libraries/include/harfbuzz/hb-cplusplus.hh +0 -221
  104. package/dist/libraries/include/harfbuzz/hb-deprecated.h +0 -251
  105. package/dist/libraries/include/harfbuzz/hb-draw.h +0 -325
  106. package/dist/libraries/include/harfbuzz/hb-face.h +0 -181
  107. package/dist/libraries/include/harfbuzz/hb-font.h +0 -1108
  108. package/dist/libraries/include/harfbuzz/hb-ft.h +0 -145
  109. package/dist/libraries/include/harfbuzz/hb-map.h +0 -124
  110. package/dist/libraries/include/harfbuzz/hb-ot-color.h +0 -146
  111. package/dist/libraries/include/harfbuzz/hb-ot-deprecated.h +0 -141
  112. package/dist/libraries/include/harfbuzz/hb-ot-font.h +0 -45
  113. package/dist/libraries/include/harfbuzz/hb-ot-layout.h +0 -503
  114. package/dist/libraries/include/harfbuzz/hb-ot-math.h +0 -333
  115. package/dist/libraries/include/harfbuzz/hb-ot-meta.h +0 -72
  116. package/dist/libraries/include/harfbuzz/hb-ot-metrics.h +0 -129
  117. package/dist/libraries/include/harfbuzz/hb-ot-name.h +0 -158
  118. package/dist/libraries/include/harfbuzz/hb-ot-shape.h +0 -53
  119. package/dist/libraries/include/harfbuzz/hb-ot-var.h +0 -191
  120. package/dist/libraries/include/harfbuzz/hb-ot.h +0 -49
  121. package/dist/libraries/include/harfbuzz/hb-set.h +0 -200
  122. package/dist/libraries/include/harfbuzz/hb-shape-plan.h +0 -122
  123. package/dist/libraries/include/harfbuzz/hb-shape.h +0 -62
  124. package/dist/libraries/include/harfbuzz/hb-style.h +0 -81
  125. package/dist/libraries/include/harfbuzz/hb-subset-repacker.h +0 -81
  126. package/dist/libraries/include/harfbuzz/hb-subset.h +0 -234
  127. package/dist/libraries/include/harfbuzz/hb-unicode.h +0 -643
  128. package/dist/libraries/include/harfbuzz/hb-version.h +0 -95
  129. package/dist/libraries/include/harfbuzz/hb.h +0 -50
  130. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config-version.cmake +0 -70
  131. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config.cmake +0 -99
  132. package/dist/libraries/lib/cmake/expat-2.4.7/expat-noconfig.cmake +0 -19
  133. package/dist/libraries/lib/cmake/expat-2.4.7/expat.cmake +0 -99
  134. package/dist/libraries/lib/libass.a +0 -0
  135. package/dist/libraries/lib/libass.la +0 -41
  136. package/dist/libraries/lib/libbrotlicommon.a +0 -0
  137. package/dist/libraries/lib/libbrotlidec.a +0 -0
  138. package/dist/libraries/lib/libbrotlienc.a +0 -0
  139. package/dist/libraries/lib/libexpat.a +0 -0
  140. package/dist/libraries/lib/libfontconfig.a +0 -0
  141. package/dist/libraries/lib/libfontconfig.la +0 -41
  142. package/dist/libraries/lib/libfreetype.a +0 -0
  143. package/dist/libraries/lib/libfreetype.la +0 -41
  144. package/dist/libraries/lib/libfribidi.a +0 -0
  145. package/dist/libraries/lib/libfribidi.la +0 -41
  146. package/dist/libraries/lib/libharfbuzz-subset.a +0 -0
  147. package/dist/libraries/lib/libharfbuzz-subset.la +0 -41
  148. package/dist/libraries/lib/libharfbuzz.a +0 -0
  149. package/dist/libraries/lib/libharfbuzz.la +0 -41
  150. package/dist/libraries/lib/pkgconfig/expat.pc +0 -11
  151. package/dist/libraries/lib/pkgconfig/fontconfig.pc +0 -18
  152. package/dist/libraries/lib/pkgconfig/freetype2.pc +0 -14
  153. package/dist/libraries/lib/pkgconfig/fribidi.pc +0 -13
  154. package/dist/libraries/lib/pkgconfig/harfbuzz-subset.pc +0 -12
  155. package/dist/libraries/lib/pkgconfig/harfbuzz.pc +0 -13
  156. package/dist/libraries/lib/pkgconfig/libass.pc +0 -13
  157. package/dist/libraries/lib/pkgconfig/libbrotlicommon.pc +0 -11
  158. package/dist/libraries/lib/pkgconfig/libbrotlidec.pc +0 -12
  159. package/dist/libraries/lib/pkgconfig/libbrotlienc.pc +0 -12
  160. package/dist/libraries/share/aclocal/freetype2.m4 +0 -194
  161. package/dist/libraries/share/doc/expat/AUTHORS +0 -10
  162. package/dist/libraries/share/doc/expat/changelog +0 -1161
  163. package/dist/license/all +0 -951
  164. package/dist/license/all.tmp +0 -307
  165. package/dist/license/brotli +0 -12
  166. package/dist/license/expat +0 -71
  167. package/dist/license/fontconfig +0 -46
  168. package/dist/license/freetype +0 -92
  169. package/dist/license/fribidi +0 -15
  170. package/dist/license/harfbuzz +0 -32
  171. package/dist/license/jassub +0 -0
  172. package/dist/license/libass +0 -28
@@ -1,188 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * ftadvanc.h
4
- *
5
- * Quick computation of advance widths (specification only).
6
- *
7
- * Copyright (C) 2008-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 FTADVANC_H_
20
- #define FTADVANC_H_
21
-
22
-
23
- #include <freetype/freetype.h>
24
-
25
- #ifdef FREETYPE_H
26
- #error "freetype.h of FreeType 1 has been loaded!"
27
- #error "Please fix the directory search order for header files"
28
- #error "so that freetype.h of FreeType 2 is found first."
29
- #endif
30
-
31
-
32
- FT_BEGIN_HEADER
33
-
34
-
35
- /**************************************************************************
36
- *
37
- * @section:
38
- * quick_advance
39
- *
40
- * @title:
41
- * Quick retrieval of advance values
42
- *
43
- * @abstract:
44
- * Retrieve horizontal and vertical advance values without processing
45
- * glyph outlines, if possible.
46
- *
47
- * @description:
48
- * This section contains functions to quickly extract advance values
49
- * without handling glyph outlines, if possible.
50
- *
51
- * @order:
52
- * FT_Get_Advance
53
- * FT_Get_Advances
54
- *
55
- */
56
-
57
-
58
- /**************************************************************************
59
- *
60
- * @enum:
61
- * FT_ADVANCE_FLAG_FAST_ONLY
62
- *
63
- * @description:
64
- * A bit-flag to be OR-ed with the `flags` parameter of the
65
- * @FT_Get_Advance and @FT_Get_Advances functions.
66
- *
67
- * If set, it indicates that you want these functions to fail if the
68
- * corresponding hinting mode or font driver doesn't allow for very quick
69
- * advance computation.
70
- *
71
- * Typically, glyphs that are either unscaled, unhinted, bitmapped, or
72
- * light-hinted can have their advance width computed very quickly.
73
- *
74
- * Normal and bytecode hinted modes that require loading, scaling, and
75
- * hinting of the glyph outline, are extremely slow by comparison.
76
- */
77
- #define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000L
78
-
79
-
80
- /**************************************************************************
81
- *
82
- * @function:
83
- * FT_Get_Advance
84
- *
85
- * @description:
86
- * Retrieve the advance value of a given glyph outline in an @FT_Face.
87
- *
88
- * @input:
89
- * face ::
90
- * The source @FT_Face handle.
91
- *
92
- * gindex ::
93
- * The glyph index.
94
- *
95
- * load_flags ::
96
- * A set of bit flags similar to those used when calling
97
- * @FT_Load_Glyph, used to determine what kind of advances you need.
98
- *
99
- * @output:
100
- * padvance ::
101
- * The advance value. If scaling is performed (based on the value of
102
- * `load_flags`), the advance value is in 16.16 format. Otherwise, it
103
- * is in font units.
104
- *
105
- * If @FT_LOAD_VERTICAL_LAYOUT is set, this is the vertical advance
106
- * corresponding to a vertical layout. Otherwise, it is the horizontal
107
- * advance in a horizontal layout.
108
- *
109
- * @return:
110
- * FreeType error code. 0 means success.
111
- *
112
- * @note:
113
- * This function may fail if you use @FT_ADVANCE_FLAG_FAST_ONLY and if
114
- * the corresponding font backend doesn't have a quick way to retrieve
115
- * the advances.
116
- *
117
- * A scaled advance is returned in 16.16 format but isn't transformed by
118
- * the affine transformation specified by @FT_Set_Transform.
119
- */
120
- FT_EXPORT( FT_Error )
121
- FT_Get_Advance( FT_Face face,
122
- FT_UInt gindex,
123
- FT_Int32 load_flags,
124
- FT_Fixed *padvance );
125
-
126
-
127
- /**************************************************************************
128
- *
129
- * @function:
130
- * FT_Get_Advances
131
- *
132
- * @description:
133
- * Retrieve the advance values of several glyph outlines in an @FT_Face.
134
- *
135
- * @input:
136
- * face ::
137
- * The source @FT_Face handle.
138
- *
139
- * start ::
140
- * The first glyph index.
141
- *
142
- * count ::
143
- * The number of advance values you want to retrieve.
144
- *
145
- * load_flags ::
146
- * A set of bit flags similar to those used when calling
147
- * @FT_Load_Glyph.
148
- *
149
- * @output:
150
- * padvance ::
151
- * The advance values. This array, to be provided by the caller, must
152
- * contain at least `count` elements.
153
- *
154
- * If scaling is performed (based on the value of `load_flags`), the
155
- * advance values are in 16.16 format. Otherwise, they are in font
156
- * units.
157
- *
158
- * If @FT_LOAD_VERTICAL_LAYOUT is set, these are the vertical advances
159
- * corresponding to a vertical layout. Otherwise, they are the
160
- * horizontal advances in a horizontal layout.
161
- *
162
- * @return:
163
- * FreeType error code. 0 means success.
164
- *
165
- * @note:
166
- * This function may fail if you use @FT_ADVANCE_FLAG_FAST_ONLY and if
167
- * the corresponding font backend doesn't have a quick way to retrieve
168
- * the advances.
169
- *
170
- * Scaled advances are returned in 16.16 format but aren't transformed by
171
- * the affine transformation specified by @FT_Set_Transform.
172
- */
173
- FT_EXPORT( FT_Error )
174
- FT_Get_Advances( FT_Face face,
175
- FT_UInt start,
176
- FT_UInt count,
177
- FT_Int32 load_flags,
178
- FT_Fixed *padvances );
179
-
180
- /* */
181
-
182
-
183
- FT_END_HEADER
184
-
185
- #endif /* FTADVANC_H_ */
186
-
187
-
188
- /* END */
@@ -1,101 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * ftbbox.h
4
- *
5
- * FreeType exact bbox computation (specification).
6
- *
7
- * Copyright (C) 1996-2021 by
8
- * David Turner, Robert Wilhelm, and Werner Lemberg.
9
- *
10
- * This file is part of the FreeType project, and may only be used,
11
- * modified, and distributed under the terms of the FreeType project
12
- * license, LICENSE.TXT. By continuing to use, modify, or distribute
13
- * this file you indicate that you have read the license and
14
- * understand and accept it fully.
15
- *
16
- */
17
-
18
-
19
- /**************************************************************************
20
- *
21
- * This component has a _single_ role: to compute exact outline bounding
22
- * boxes.
23
- *
24
- * It is separated from the rest of the engine for various technical
25
- * reasons. It may well be integrated in 'ftoutln' later.
26
- *
27
- */
28
-
29
-
30
- #ifndef FTBBOX_H_
31
- #define FTBBOX_H_
32
-
33
-
34
- #include <freetype/freetype.h>
35
-
36
- #ifdef FREETYPE_H
37
- #error "freetype.h of FreeType 1 has been loaded!"
38
- #error "Please fix the directory search order for header files"
39
- #error "so that freetype.h of FreeType 2 is found first."
40
- #endif
41
-
42
-
43
- FT_BEGIN_HEADER
44
-
45
-
46
- /**************************************************************************
47
- *
48
- * @section:
49
- * outline_processing
50
- *
51
- */
52
-
53
-
54
- /**************************************************************************
55
- *
56
- * @function:
57
- * FT_Outline_Get_BBox
58
- *
59
- * @description:
60
- * Compute the exact bounding box of an outline. This is slower than
61
- * computing the control box. However, it uses an advanced algorithm
62
- * that returns _very_ quickly when the two boxes coincide. Otherwise,
63
- * the outline Bezier arcs are traversed to extract their extrema.
64
- *
65
- * @input:
66
- * outline ::
67
- * A pointer to the source outline.
68
- *
69
- * @output:
70
- * abbox ::
71
- * The outline's exact bounding box.
72
- *
73
- * @return:
74
- * FreeType error code. 0~means success.
75
- *
76
- * @note:
77
- * If the font is tricky and the glyph has been loaded with
78
- * @FT_LOAD_NO_SCALE, the resulting BBox is meaningless. To get
79
- * reasonable values for the BBox it is necessary to load the glyph at a
80
- * large ppem value (so that the hinting instructions can properly shift
81
- * and scale the subglyphs), then extracting the BBox, which can be
82
- * eventually converted back to font units.
83
- */
84
- FT_EXPORT( FT_Error )
85
- FT_Outline_Get_BBox( FT_Outline* outline,
86
- FT_BBox *abbox );
87
-
88
- /* */
89
-
90
-
91
- FT_END_HEADER
92
-
93
- #endif /* FTBBOX_H_ */
94
-
95
-
96
- /* END */
97
-
98
-
99
- /* Local Variables: */
100
- /* coding: utf-8 */
101
- /* End: */
@@ -1,212 +0,0 @@
1
- /****************************************************************************
2
- *
3
- * ftbdf.h
4
- *
5
- * FreeType API for accessing BDF-specific strings (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
- #ifndef FTBDF_H_
20
- #define FTBDF_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
- * bdf_fonts
38
- *
39
- * @title:
40
- * BDF and PCF Files
41
- *
42
- * @abstract:
43
- * BDF and PCF specific API.
44
- *
45
- * @description:
46
- * This section contains the declaration of functions specific to BDF and
47
- * PCF fonts.
48
- *
49
- */
50
-
51
-
52
- /**************************************************************************
53
- *
54
- * @enum:
55
- * BDF_PropertyType
56
- *
57
- * @description:
58
- * A list of BDF property types.
59
- *
60
- * @values:
61
- * BDF_PROPERTY_TYPE_NONE ::
62
- * Value~0 is used to indicate a missing property.
63
- *
64
- * BDF_PROPERTY_TYPE_ATOM ::
65
- * Property is a string atom.
66
- *
67
- * BDF_PROPERTY_TYPE_INTEGER ::
68
- * Property is a 32-bit signed integer.
69
- *
70
- * BDF_PROPERTY_TYPE_CARDINAL ::
71
- * Property is a 32-bit unsigned integer.
72
- */
73
- typedef enum BDF_PropertyType_
74
- {
75
- BDF_PROPERTY_TYPE_NONE = 0,
76
- BDF_PROPERTY_TYPE_ATOM = 1,
77
- BDF_PROPERTY_TYPE_INTEGER = 2,
78
- BDF_PROPERTY_TYPE_CARDINAL = 3
79
-
80
- } BDF_PropertyType;
81
-
82
-
83
- /**************************************************************************
84
- *
85
- * @type:
86
- * BDF_Property
87
- *
88
- * @description:
89
- * A handle to a @BDF_PropertyRec structure to model a given BDF/PCF
90
- * property.
91
- */
92
- typedef struct BDF_PropertyRec_* BDF_Property;
93
-
94
-
95
- /**************************************************************************
96
- *
97
- * @struct:
98
- * BDF_PropertyRec
99
- *
100
- * @description:
101
- * This structure models a given BDF/PCF property.
102
- *
103
- * @fields:
104
- * type ::
105
- * The property type.
106
- *
107
- * u.atom ::
108
- * The atom string, if type is @BDF_PROPERTY_TYPE_ATOM. May be
109
- * `NULL`, indicating an empty string.
110
- *
111
- * u.integer ::
112
- * A signed integer, if type is @BDF_PROPERTY_TYPE_INTEGER.
113
- *
114
- * u.cardinal ::
115
- * An unsigned integer, if type is @BDF_PROPERTY_TYPE_CARDINAL.
116
- */
117
- typedef struct BDF_PropertyRec_
118
- {
119
- BDF_PropertyType type;
120
- union {
121
- const char* atom;
122
- FT_Int32 integer;
123
- FT_UInt32 cardinal;
124
-
125
- } u;
126
-
127
- } BDF_PropertyRec;
128
-
129
-
130
- /**************************************************************************
131
- *
132
- * @function:
133
- * FT_Get_BDF_Charset_ID
134
- *
135
- * @description:
136
- * Retrieve a BDF font character set identity, according to the BDF
137
- * specification.
138
- *
139
- * @input:
140
- * face ::
141
- * A handle to the input face.
142
- *
143
- * @output:
144
- * acharset_encoding ::
145
- * Charset encoding, as a C~string, owned by the face.
146
- *
147
- * acharset_registry ::
148
- * Charset registry, as a C~string, owned by the face.
149
- *
150
- * @return:
151
- * FreeType error code. 0~means success.
152
- *
153
- * @note:
154
- * This function only works with BDF faces, returning an error otherwise.
155
- */
156
- FT_EXPORT( FT_Error )
157
- FT_Get_BDF_Charset_ID( FT_Face face,
158
- const char* *acharset_encoding,
159
- const char* *acharset_registry );
160
-
161
-
162
- /**************************************************************************
163
- *
164
- * @function:
165
- * FT_Get_BDF_Property
166
- *
167
- * @description:
168
- * Retrieve a BDF property from a BDF or PCF font file.
169
- *
170
- * @input:
171
- * face ::
172
- * A handle to the input face.
173
- *
174
- * name ::
175
- * The property name.
176
- *
177
- * @output:
178
- * aproperty ::
179
- * The property.
180
- *
181
- * @return:
182
- * FreeType error code. 0~means success.
183
- *
184
- * @note:
185
- * This function works with BDF _and_ PCF fonts. It returns an error
186
- * otherwise. It also returns an error if the property is not in the
187
- * font.
188
- *
189
- * A 'property' is a either key-value pair within the STARTPROPERTIES
190
- * ... ENDPROPERTIES block of a BDF font or a key-value pair from the
191
- * `info->props` array within a `FontRec` structure of a PCF font.
192
- *
193
- * Integer properties are always stored as 'signed' within PCF fonts;
194
- * consequently, @BDF_PROPERTY_TYPE_CARDINAL is a possible return value
195
- * for BDF fonts only.
196
- *
197
- * In case of error, `aproperty->type` is always set to
198
- * @BDF_PROPERTY_TYPE_NONE.
199
- */
200
- FT_EXPORT( FT_Error )
201
- FT_Get_BDF_Property( FT_Face face,
202
- const char* prop_name,
203
- BDF_PropertyRec *aproperty );
204
-
205
- /* */
206
-
207
- FT_END_HEADER
208
-
209
- #endif /* FTBDF_H_ */
210
-
211
-
212
- /* END */