@ot-builder/io-bin-font 1.7.8 → 1.8.0
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/lib/config.js +7 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +5 -5
- package/lib/read.d.ts +3 -3
- package/lib/read.js +2 -1
- package/lib/write.d.ts +1 -1
- package/lib/write.js +2 -1
- package/package.json +20 -20
package/lib/config.js
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LookupWriteTrick = void 0;
|
|
4
4
|
exports.createConfig = createConfig;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const IoBinEncoding = tslib_1.__importStar(require("@ot-builder/io-bin-encoding"));
|
|
7
|
+
const IoBinExtPrivate = tslib_1.__importStar(require("@ot-builder/io-bin-ext-private"));
|
|
8
|
+
const IoBinGlyphStore = tslib_1.__importStar(require("@ot-builder/io-bin-glyph-store"));
|
|
9
|
+
const IoBinLayout = tslib_1.__importStar(require("@ot-builder/io-bin-layout"));
|
|
10
|
+
const IoBinMetadata = tslib_1.__importStar(require("@ot-builder/io-bin-metadata"));
|
|
11
|
+
const IoBinVttPrivate = tslib_1.__importStar(require("@ot-builder/io-bin-vtt-private"));
|
|
11
12
|
function createConfig(partial) {
|
|
12
13
|
return {
|
|
13
14
|
cff: { ...IoBinGlyphStore.DefaultCffCfgProps, ...partial.cff },
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export { readSfntOtf, readSfntTtc, TableSlice, TableSliceCollection, writeSfntOtf, writeSfntOtfFromTableSlices, writeSfntTtc, writeSfntTtcFromTableSlices } from "@ot-builder/io-bin-sfnt";
|
|
1
2
|
export { FontIoConfig } from "./config";
|
|
2
3
|
export { readFont } from "./read";
|
|
3
4
|
export { writeFont } from "./write";
|
|
4
|
-
export { readSfntOtf, readSfntTtc, TableSlice, TableSliceCollection, writeSfntOtf, writeSfntOtfFromTableSlices, writeSfntTtc, writeSfntTtcFromTableSlices } from "@ot-builder/io-bin-sfnt";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var read_1 = require("./read");
|
|
5
|
-
Object.defineProperty(exports, "readFont", { enumerable: true, get: function () { return read_1.readFont; } });
|
|
6
|
-
var write_1 = require("./write");
|
|
7
|
-
Object.defineProperty(exports, "writeFont", { enumerable: true, get: function () { return write_1.writeFont; } });
|
|
3
|
+
exports.writeFont = exports.readFont = exports.writeSfntTtcFromTableSlices = exports.writeSfntTtc = exports.writeSfntOtfFromTableSlices = exports.writeSfntOtf = exports.readSfntTtc = exports.readSfntOtf = void 0;
|
|
8
4
|
var io_bin_sfnt_1 = require("@ot-builder/io-bin-sfnt");
|
|
9
5
|
Object.defineProperty(exports, "readSfntOtf", { enumerable: true, get: function () { return io_bin_sfnt_1.readSfntOtf; } });
|
|
10
6
|
Object.defineProperty(exports, "readSfntTtc", { enumerable: true, get: function () { return io_bin_sfnt_1.readSfntTtc; } });
|
|
@@ -12,4 +8,8 @@ Object.defineProperty(exports, "writeSfntOtf", { enumerable: true, get: function
|
|
|
12
8
|
Object.defineProperty(exports, "writeSfntOtfFromTableSlices", { enumerable: true, get: function () { return io_bin_sfnt_1.writeSfntOtfFromTableSlices; } });
|
|
13
9
|
Object.defineProperty(exports, "writeSfntTtc", { enumerable: true, get: function () { return io_bin_sfnt_1.writeSfntTtc; } });
|
|
14
10
|
Object.defineProperty(exports, "writeSfntTtcFromTableSlices", { enumerable: true, get: function () { return io_bin_sfnt_1.writeSfntTtcFromTableSlices; } });
|
|
11
|
+
var read_1 = require("./read");
|
|
12
|
+
Object.defineProperty(exports, "readFont", { enumerable: true, get: function () { return read_1.readFont; } });
|
|
13
|
+
var write_1 = require("./write");
|
|
14
|
+
Object.defineProperty(exports, "writeFont", { enumerable: true, get: function () { return write_1.writeFont; } });
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/lib/read.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Ot from "@ot-builder/ot";
|
|
2
|
-
import { Sfnt } from "@ot-builder/ot-sfnt";
|
|
3
|
-
import { Data } from "@ot-builder/prelude";
|
|
4
|
-
import { FontIoConfig } from "./config";
|
|
2
|
+
import type { Sfnt } from "@ot-builder/ot-sfnt";
|
|
3
|
+
import type { Data } from "@ot-builder/prelude";
|
|
4
|
+
import { type FontIoConfig } from "./config";
|
|
5
5
|
export declare function readFont<GS extends Ot.GlyphStore>(sfnt: Sfnt, gsf: Data.OrderStoreFactoryWithDefault<Ot.Glyph, GS>, partialConfig?: FontIoConfig): Ot.Font<GS>;
|
|
6
6
|
//# sourceMappingURL=read.d.ts.map
|
package/lib/read.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readFont = readFont;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const io_bin_encoding_1 = require("@ot-builder/io-bin-encoding");
|
|
5
6
|
const io_bin_ext_private_1 = require("@ot-builder/io-bin-ext-private");
|
|
6
7
|
const io_bin_glyph_store_1 = require("@ot-builder/io-bin-glyph-store");
|
|
@@ -8,7 +9,7 @@ const io_bin_layout_1 = require("@ot-builder/io-bin-layout");
|
|
|
8
9
|
const io_bin_metadata_1 = require("@ot-builder/io-bin-metadata");
|
|
9
10
|
const io_bin_name_1 = require("@ot-builder/io-bin-name");
|
|
10
11
|
const io_bin_vtt_private_1 = require("@ot-builder/io-bin-vtt-private");
|
|
11
|
-
const Ot = require("@ot-builder/ot");
|
|
12
|
+
const Ot = tslib_1.__importStar(require("@ot-builder/ot"));
|
|
12
13
|
const config_1 = require("./config");
|
|
13
14
|
function readFont(sfnt, gsf, partialConfig = {}) {
|
|
14
15
|
const fullCfg = (0, config_1.createConfig)(partialConfig);
|
package/lib/write.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Ot from "@ot-builder/ot";
|
|
2
2
|
import { Sfnt } from "@ot-builder/ot-sfnt";
|
|
3
|
-
import { FontIoConfig } from "./config";
|
|
3
|
+
import { type FontIoConfig } from "./config";
|
|
4
4
|
export declare function writeFont<GS extends Ot.GlyphStore>(font: Ot.Font<GS>, partialConfig?: FontIoConfig): Sfnt;
|
|
5
5
|
//# sourceMappingURL=write.d.ts.map
|
package/lib/write.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writeFont = writeFont;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const io_bin_encoding_1 = require("@ot-builder/io-bin-encoding");
|
|
5
6
|
const io_bin_ext_private_1 = require("@ot-builder/io-bin-ext-private");
|
|
6
7
|
const io_bin_glyph_store_1 = require("@ot-builder/io-bin-glyph-store");
|
|
@@ -9,7 +10,7 @@ const io_bin_metadata_1 = require("@ot-builder/io-bin-metadata");
|
|
|
9
10
|
const io_bin_name_1 = require("@ot-builder/io-bin-name");
|
|
10
11
|
const io_bin_sfnt_1 = require("@ot-builder/io-bin-sfnt");
|
|
11
12
|
const io_bin_vtt_private_1 = require("@ot-builder/io-bin-vtt-private");
|
|
12
|
-
const Ot = require("@ot-builder/ot");
|
|
13
|
+
const Ot = tslib_1.__importStar(require("@ot-builder/ot"));
|
|
13
14
|
const ot_sfnt_1 = require("@ot-builder/ot-sfnt");
|
|
14
15
|
const config_1 = require("./config");
|
|
15
16
|
// Lenses here are somehow unnecessary, but it will prevent random errors in the write code
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ot-builder/io-bin-font",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,25 +24,25 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"tslib": "^2.8.1",
|
|
27
|
-
"@ot-builder/io-bin-encoding": "1.
|
|
28
|
-
"@ot-builder/io-bin-ext-private": "1.
|
|
29
|
-
"@ot-builder/io-bin-glyph-store": "1.
|
|
30
|
-
"@ot-builder/io-bin-layout": "1.
|
|
31
|
-
"@ot-builder/io-bin-metadata": "1.
|
|
32
|
-
"@ot-builder/io-bin-name": "1.
|
|
33
|
-
"@ot-builder/io-bin-sfnt": "1.
|
|
34
|
-
"@ot-builder/io-bin-vtt-private": "1.
|
|
35
|
-
"@ot-builder/ot": "1.
|
|
36
|
-
"@ot-builder/ot-glyphs": "1.
|
|
37
|
-
"@ot-builder/ot-metadata": "1.
|
|
38
|
-
"@ot-builder/ot-sfnt": "1.
|
|
39
|
-
"@ot-builder/prelude": "1.
|
|
40
|
-
"@ot-builder/ot-encoding": "1.
|
|
41
|
-
"@ot-builder/ot-ext-private": "1.
|
|
42
|
-
"@ot-builder/ot-layout": "1.
|
|
43
|
-
"@ot-builder/ot-name": "1.
|
|
44
|
-
"@ot-builder/ot-vtt-private": "1.
|
|
45
|
-
"@ot-builder/bin-util": "1.
|
|
27
|
+
"@ot-builder/io-bin-encoding": "1.8.0",
|
|
28
|
+
"@ot-builder/io-bin-ext-private": "1.8.0",
|
|
29
|
+
"@ot-builder/io-bin-glyph-store": "1.9.0",
|
|
30
|
+
"@ot-builder/io-bin-layout": "1.8.0",
|
|
31
|
+
"@ot-builder/io-bin-metadata": "1.8.0",
|
|
32
|
+
"@ot-builder/io-bin-name": "1.8.0",
|
|
33
|
+
"@ot-builder/io-bin-sfnt": "1.8.0",
|
|
34
|
+
"@ot-builder/io-bin-vtt-private": "1.8.0",
|
|
35
|
+
"@ot-builder/ot": "1.8.0",
|
|
36
|
+
"@ot-builder/ot-glyphs": "1.8.0",
|
|
37
|
+
"@ot-builder/ot-metadata": "1.8.0",
|
|
38
|
+
"@ot-builder/ot-sfnt": "1.8.0",
|
|
39
|
+
"@ot-builder/prelude": "1.8.0",
|
|
40
|
+
"@ot-builder/ot-encoding": "1.8.0",
|
|
41
|
+
"@ot-builder/ot-ext-private": "1.8.0",
|
|
42
|
+
"@ot-builder/ot-layout": "1.8.0",
|
|
43
|
+
"@ot-builder/ot-name": "1.8.0",
|
|
44
|
+
"@ot-builder/ot-vtt-private": "1.8.0",
|
|
45
|
+
"@ot-builder/bin-util": "1.8.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/jest": "^30.0.0",
|