jassub 1.0.0 → 1.0.1
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.
- package/README.md +1 -1
- package/dist/jassub-worker.data +35 -35
- package/dist/jassub-worker.js +1 -1
- package/dist/jassub-worker.wasm +0 -0
- package/package.json +1 -1
- package/src/jassub.js +1 -2
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ The default options are best, and automatically fallback to the next fastest opt
|
|
|
99
99
|
- `{String} options.legacyWorkerUrl` { Optional = 'jassub-worker-legacy.js' } The URL of the legacy worker. Only loaded if the browser doesn't support WASM.
|
|
100
100
|
- `{String} [options.subUrl=options.subContent]` The URL of the subtitle file to play.
|
|
101
101
|
- `{String} [options.subContent=options.subUrl]` The content of the subtitle file to play.
|
|
102
|
-
- `{String[]} options.fonts` { Optional } An array of links to the fonts used in the subtitle. This forces all the fonts in this array to be loaded by the renderer, regardless of if they are used.
|
|
102
|
+
- `{String[]|Uint8Array[]} options.fonts` { Optional } An array of links or Uint8Arrays to the fonts used in the subtitle. If Uint8Array is used the array is copied, not referenced. This forces all the fonts in this array to be loaded by the renderer, regardless of if they are used.
|
|
103
103
|
- `{Object} options.availableFonts` { Optional } Object with all available fonts - Key is font name in lower case, value is link: { arial: '/font1.ttf' }. These fonts are selectively loaded if detected as used in the current subtitle track.
|
|
104
104
|
- `{String} options.fallbackFont` { Optional = 'default.woff2' } The URL of the fallback font to use. This font is used if the other font for the style is missing special glyphs or unicode.
|
|
105
105
|
- `{Number} options.libassMemoryLimit` { Optional } libass bitmap cache memory limit in MiB (approximate).
|
package/dist/jassub-worker.data
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
3
|
-
<fontconfig>
|
|
4
|
-
<dir>/fonts</dir>
|
|
5
|
-
<match target="pattern">
|
|
6
|
-
<test qual="any" name="family">
|
|
7
|
-
<string>mono</string>
|
|
8
|
-
</test>
|
|
9
|
-
<edit name="family" mode="assign" binding="same">
|
|
10
|
-
<string>monospace</string>
|
|
11
|
-
</edit>
|
|
12
|
-
</match>
|
|
13
|
-
<match target="pattern">
|
|
14
|
-
<test qual="any" name="family">
|
|
15
|
-
<string>sans serif</string>
|
|
16
|
-
</test>
|
|
17
|
-
<edit name="family" mode="assign" binding="same">
|
|
18
|
-
<string>sans-serif</string>
|
|
19
|
-
</edit>
|
|
20
|
-
</match>
|
|
21
|
-
<match target="pattern">
|
|
22
|
-
<test qual="any" name="family">
|
|
23
|
-
<string>sans</string>
|
|
24
|
-
</test>
|
|
25
|
-
<edit name="family" mode="assign" binding="same">
|
|
26
|
-
<string>sans-serif</string>
|
|
27
|
-
</edit>
|
|
28
|
-
</match>
|
|
29
|
-
<cachedir>/fontconfig</cachedir>
|
|
30
|
-
<config>
|
|
31
|
-
<rescan>
|
|
32
|
-
<int>30</int>
|
|
33
|
-
</rescan>
|
|
34
|
-
</config>
|
|
35
|
-
</fontconfig>
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
3
|
+
<fontconfig>
|
|
4
|
+
<dir>/fonts</dir>
|
|
5
|
+
<match target="pattern">
|
|
6
|
+
<test qual="any" name="family">
|
|
7
|
+
<string>mono</string>
|
|
8
|
+
</test>
|
|
9
|
+
<edit name="family" mode="assign" binding="same">
|
|
10
|
+
<string>monospace</string>
|
|
11
|
+
</edit>
|
|
12
|
+
</match>
|
|
13
|
+
<match target="pattern">
|
|
14
|
+
<test qual="any" name="family">
|
|
15
|
+
<string>sans serif</string>
|
|
16
|
+
</test>
|
|
17
|
+
<edit name="family" mode="assign" binding="same">
|
|
18
|
+
<string>sans-serif</string>
|
|
19
|
+
</edit>
|
|
20
|
+
</match>
|
|
21
|
+
<match target="pattern">
|
|
22
|
+
<test qual="any" name="family">
|
|
23
|
+
<string>sans</string>
|
|
24
|
+
</test>
|
|
25
|
+
<edit name="family" mode="assign" binding="same">
|
|
26
|
+
<string>sans-serif</string>
|
|
27
|
+
</edit>
|
|
28
|
+
</match>
|
|
29
|
+
<cachedir>/fontconfig</cachedir>
|
|
30
|
+
<config>
|
|
31
|
+
<rescan>
|
|
32
|
+
<int>30</int>
|
|
33
|
+
</rescan>
|
|
34
|
+
</config>
|
|
35
|
+
</fontconfig>
|