@ot-builder/cli-proc 1.0.10 → 1.1.2
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/CHANGELOG.json +103 -1
- package/CHANGELOG.md +41 -2
- package/lib/procs/gc.js +1 -1
- package/lib/procs/merge-consolidate/consolidate/feature.js +2 -2
- package/lib/procs/merge-consolidate/gsub-gpos-merger.d.ts +1 -1
- package/lib/procs/merge-consolidate/gsub-gpos-merger.js +5 -5
- package/lib/procs/merge-consolidate/index.js +9 -9
- package/lib/procs/share-glyph-set.js +1 -1
- package/lib/procs/subset.js +1 -1
- package/lib/support/share-glyph-set/glyph-hasher.d.ts +1 -1
- package/lib/support/share-glyph-set/glyph-hasher.js +11 -11
- package/package.json +18 -8
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,109 @@
|
|
|
2
2
|
"name": "@ot-builder/cli-proc",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Sat,
|
|
5
|
+
"date": "Sat, 25 Sep 2021 01:06:38 GMT",
|
|
6
|
+
"tag": "@ot-builder/cli-proc_v1.1.2",
|
|
7
|
+
"version": "1.1.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@ot-builder/cli-proc",
|
|
13
|
+
"comment": "Bump @ot-builder/io-bin-font to v1.1.2",
|
|
14
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@ot-builder/cli-proc",
|
|
19
|
+
"comment": "Bump @ot-builder/primitive to v1.1.2",
|
|
20
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@ot-builder/cli-proc",
|
|
25
|
+
"comment": "Bump @ot-builder/common-impl to v1.1.2",
|
|
26
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@ot-builder/cli-proc",
|
|
31
|
+
"comment": "Bump @ot-builder/rectify to v1.1.2",
|
|
32
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@ot-builder/cli-proc",
|
|
37
|
+
"comment": "Bump @ot-builder/trace to v1.1.2",
|
|
38
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@ot-builder/cli-proc",
|
|
43
|
+
"comment": "Bump @ot-builder/prelude to v1.1.2",
|
|
44
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@ot-builder/cli-proc",
|
|
49
|
+
"comment": "Bump @ot-builder/ot to v1.1.2",
|
|
50
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"date": "Sat, 11 Sep 2021 01:09:21 GMT",
|
|
57
|
+
"tag": "@ot-builder/cli-proc_v1.1.1",
|
|
58
|
+
"version": "1.1.1",
|
|
59
|
+
"comments": {
|
|
60
|
+
"patch": [
|
|
61
|
+
{
|
|
62
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
63
|
+
"package": "@ot-builder/cli-proc",
|
|
64
|
+
"commit": "28bc4c48910f10dcabb090ab68e610ce499caa95",
|
|
65
|
+
"comment": "Bump @ot-builder/cli-proc to v1.1.1"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"date": "Sun, 18 Jul 2021 02:14:19 GMT",
|
|
72
|
+
"tag": "@ot-builder/cli-proc_v1.1.0",
|
|
73
|
+
"version": "1.1.0",
|
|
74
|
+
"comments": {
|
|
75
|
+
"minor": [
|
|
76
|
+
{
|
|
77
|
+
"comment": "Cleanup unnecessary namespaces",
|
|
78
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
79
|
+
"commit": "c79ab97437319873bfe49602a21eab95d78083e3",
|
|
80
|
+
"package": "@ot-builder/cli-proc"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"comment": "Bump @ot-builder/cli-proc to v1.1.0",
|
|
84
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
85
|
+
"commit": "c79ab97437319873bfe49602a21eab95d78083e3",
|
|
86
|
+
"package": "@ot-builder/cli-proc"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"date": "Sat, 17 Jul 2021 01:08:07 GMT",
|
|
93
|
+
"tag": "@ot-builder/cli-proc_v1.0.11",
|
|
94
|
+
"version": "1.0.11",
|
|
95
|
+
"comments": {
|
|
96
|
+
"patch": [
|
|
97
|
+
{
|
|
98
|
+
"comment": "Bump @ot-builder/cli-proc to v1.0.11",
|
|
99
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
100
|
+
"commit": "7f243f6eb75ed28e2d367af7ed0423d0327529ff",
|
|
101
|
+
"package": "@ot-builder/cli-proc"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"date": "Sat, 03 Jul 2021 01:07:58 GMT",
|
|
6
108
|
"tag": "@ot-builder/cli-proc_v1.0.10",
|
|
7
109
|
"version": "1.0.10",
|
|
8
110
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,51 @@
|
|
|
1
1
|
# Change Log - @ot-builder/cli-proc
|
|
2
2
|
|
|
3
|
-
This log was last generated on Sat,
|
|
3
|
+
This log was last generated on Sat, 25 Sep 2021 01:06:38 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.1.2
|
|
8
|
+
|
|
9
|
+
Sat, 25 Sep 2021 01:06:38 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @ot-builder/io-bin-font to v1.1.2
|
|
14
|
+
- Bump @ot-builder/primitive to v1.1.2
|
|
15
|
+
- Bump @ot-builder/common-impl to v1.1.2
|
|
16
|
+
- Bump @ot-builder/rectify to v1.1.2
|
|
17
|
+
- Bump @ot-builder/trace to v1.1.2
|
|
18
|
+
- Bump @ot-builder/prelude to v1.1.2
|
|
19
|
+
- Bump @ot-builder/ot to v1.1.2
|
|
20
|
+
|
|
21
|
+
## 1.1.1
|
|
22
|
+
|
|
23
|
+
Sat, 11 Sep 2021 01:09:21 GMT
|
|
24
|
+
|
|
25
|
+
### Patches
|
|
26
|
+
|
|
27
|
+
- Bump @ot-builder/cli-proc to v1.1.1 (otbbuilder-dev@users.noreply.github.com)
|
|
28
|
+
|
|
29
|
+
## 1.1.0
|
|
30
|
+
|
|
31
|
+
Sun, 18 Jul 2021 02:14:19 GMT
|
|
32
|
+
|
|
33
|
+
### Minor changes
|
|
34
|
+
|
|
35
|
+
- Cleanup unnecessary namespaces (otbbuilder-dev@users.noreply.github.com)
|
|
36
|
+
- Bump @ot-builder/cli-proc to v1.1.0 (otbbuilder-dev@users.noreply.github.com)
|
|
37
|
+
|
|
38
|
+
## 1.0.11
|
|
39
|
+
|
|
40
|
+
Sat, 17 Jul 2021 01:08:07 GMT
|
|
41
|
+
|
|
42
|
+
### Patches
|
|
43
|
+
|
|
44
|
+
- Bump @ot-builder/cli-proc to v1.0.11 (otbbuilder-dev@users.noreply.github.com)
|
|
45
|
+
|
|
7
46
|
## 1.0.10
|
|
8
47
|
|
|
9
|
-
Sat, 03 Jul 2021 01:
|
|
48
|
+
Sat, 03 Jul 2021 01:07:58 GMT
|
|
10
49
|
|
|
11
50
|
### Patches
|
|
12
51
|
|
package/lib/procs/gc.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.gcFont = void 0;
|
|
|
4
4
|
const Rectify = require("@ot-builder/rectify");
|
|
5
5
|
const initial_visible_glyphs_1 = require("../support/initial-visible-glyphs");
|
|
6
6
|
function gcFont(font, gsf) {
|
|
7
|
-
const { glyphs, rectifier } = initial_visible_glyphs_1.createSubsetRectifier(font, { has: () => true });
|
|
7
|
+
const { glyphs, rectifier } = (0, initial_visible_glyphs_1.createSubsetRectifier)(font, { has: () => true });
|
|
8
8
|
font.glyphs = gsf.createStoreFromList(glyphs);
|
|
9
9
|
Rectify.inPlaceRectifyFontGlyphReferences(rectifier, font);
|
|
10
10
|
}
|
|
@@ -37,8 +37,8 @@ class FeatureConsolidator {
|
|
|
37
37
|
}
|
|
38
38
|
if (!srcZones.length)
|
|
39
39
|
return;
|
|
40
|
-
for (const [zone, tfm] of zone_dicing_1.diceZones(this.env.variationDimensions.length, srcZones)) {
|
|
41
|
-
const hash = zone_dicing_1.hashZone(zone);
|
|
40
|
+
for (const [zone, tfm] of (0, zone_dicing_1.diceZones)(this.env.variationDimensions.length, srcZones)) {
|
|
41
|
+
const hash = (0, zone_dicing_1.hashZone)(zone);
|
|
42
42
|
let fv = this.env.featureVariationCollection.get(hash);
|
|
43
43
|
if (!fv) {
|
|
44
44
|
fv = { conditions: this.zoneToConditions(zone), substitutions: new Map() };
|
|
@@ -19,6 +19,6 @@ export declare class GsubGposMerger<L> implements FeatureConsolidationSource<L>
|
|
|
19
19
|
private fordLess;
|
|
20
20
|
featureVariationCollection: Map<string, Ot.GsubGpos.FeatureVariationT<L>>;
|
|
21
21
|
getFeatureHash(feature: Ot.GsubGpos.FeatureT<L>): string;
|
|
22
|
-
getFeatureVariations(): Generator<Ot.GsubGpos.
|
|
22
|
+
getFeatureVariations(): Generator<Ot.GsubGpos.GeneralGsubGpos.FeatureVariationT<Ot.Var.Dim, Ot.Glyph, Ot.Var.Value, L>, void, undefined>;
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=gsub-gpos-merger.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GsubGposMerger = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ImpLib = require("@ot-builder/common-impl");
|
|
5
5
|
const feature_1 = require("./consolidate/feature");
|
|
6
6
|
const utils_1 = require("./utils");
|
|
7
7
|
class GsubGposMerger {
|
|
@@ -11,8 +11,8 @@ class GsubGposMerger {
|
|
|
11
11
|
this.less = less;
|
|
12
12
|
this.featureMergingPlans = new Map();
|
|
13
13
|
this.featureVariationCollection = new Map();
|
|
14
|
-
this.fordPreferred =
|
|
15
|
-
this.fordLess =
|
|
14
|
+
this.fordPreferred = ImpLib.Order.fromList("Features", preferred.features);
|
|
15
|
+
this.fordLess = ImpLib.Order.fromList("Features", less.features);
|
|
16
16
|
}
|
|
17
17
|
resolve() {
|
|
18
18
|
const lookups = this.getLookups();
|
|
@@ -27,7 +27,7 @@ class GsubGposMerger {
|
|
|
27
27
|
return [...this.preferred.lookups, ...this.less.lookups];
|
|
28
28
|
}
|
|
29
29
|
mergeScriptList() {
|
|
30
|
-
return utils_1.mergeMapAlt(this.preferred.scripts, this.less.scripts, this.mergeScript.bind(this));
|
|
30
|
+
return (0, utils_1.mergeMapAlt)(this.preferred.scripts, this.less.scripts, this.mergeScript.bind(this));
|
|
31
31
|
}
|
|
32
32
|
mergeScript(preferred, less) {
|
|
33
33
|
if (!preferred)
|
|
@@ -36,7 +36,7 @@ class GsubGposMerger {
|
|
|
36
36
|
less = { defaultLanguage: null, languages: new Map() };
|
|
37
37
|
return {
|
|
38
38
|
defaultLanguage: this.mergeLanguage(preferred.defaultLanguage, less.defaultLanguage),
|
|
39
|
-
languages: utils_1.mergeMapAlt(preferred.languages, less.languages, this.mergeLanguage.bind(this))
|
|
39
|
+
languages: (0, utils_1.mergeMapAlt)(preferred.languages, less.languages, this.mergeLanguage.bind(this))
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
mergeLanguage(preferred, less) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.consolidateFont = exports.mergeFonts = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ImpLib = require("@ot-builder/common-impl");
|
|
5
5
|
const Ot = require("@ot-builder/ot");
|
|
6
6
|
const Rectify = require("@ot-builder/rectify");
|
|
7
7
|
const design_unifier_1 = require("../../support/design-unifier");
|
|
8
8
|
const gsub_gpos_merger_1 = require("./gsub-gpos-merger");
|
|
9
9
|
const utils_1 = require("./utils");
|
|
10
10
|
function mergeFonts(basis, override, gsf, opt = {}) {
|
|
11
|
-
design_unifier_1.unifyDesignSpacesImpl(new design_unifier_1.DesignUnifierSession(), basis, override);
|
|
11
|
+
(0, design_unifier_1.unifyDesignSpacesImpl)(new design_unifier_1.DesignUnifierSession(), basis, override);
|
|
12
12
|
basis.glyphs = gsf.createStoreFromList([
|
|
13
13
|
...basis.glyphs.decideOrder(),
|
|
14
14
|
...override.glyphs.decideOrder()
|
|
@@ -64,11 +64,11 @@ function mergeGdef(preferred, less) {
|
|
|
64
64
|
if (!less)
|
|
65
65
|
return preferred;
|
|
66
66
|
const result = new Ot.Gdef.Table();
|
|
67
|
-
result.glyphClassDef = utils_1.mergeMapOpt(preferred.glyphClassDef, less.glyphClassDef, utils_1.Prime);
|
|
68
|
-
result.attachList = utils_1.mergeMapOpt(preferred.attachList, less.attachList, utils_1.Prime);
|
|
69
|
-
result.ligCarets = utils_1.mergeMapOpt(preferred.ligCarets, less.ligCarets, utils_1.Prime);
|
|
70
|
-
result.markAttachClassDef = utils_1.mergeMapOpt(preferred.markAttachClassDef, less.markAttachClassDef, utils_1.Prime);
|
|
71
|
-
result.markGlyphSets = utils_1.combineList(preferred.markGlyphSets, less.markGlyphSets);
|
|
67
|
+
result.glyphClassDef = (0, utils_1.mergeMapOpt)(preferred.glyphClassDef, less.glyphClassDef, utils_1.Prime);
|
|
68
|
+
result.attachList = (0, utils_1.mergeMapOpt)(preferred.attachList, less.attachList, utils_1.Prime);
|
|
69
|
+
result.ligCarets = (0, utils_1.mergeMapOpt)(preferred.ligCarets, less.ligCarets, utils_1.Prime);
|
|
70
|
+
result.markAttachClassDef = (0, utils_1.mergeMapOpt)(preferred.markAttachClassDef, less.markAttachClassDef, utils_1.Prime);
|
|
71
|
+
result.markGlyphSets = (0, utils_1.combineList)(preferred.markGlyphSets, less.markGlyphSets);
|
|
72
72
|
return result;
|
|
73
73
|
}
|
|
74
74
|
function mergeGsubGpos(fvar, preferred, less) {
|
|
@@ -76,11 +76,11 @@ function mergeGsubGpos(fvar, preferred, less) {
|
|
|
76
76
|
return less;
|
|
77
77
|
if (!less)
|
|
78
78
|
return preferred;
|
|
79
|
-
const merger = new gsub_gpos_merger_1.GsubGposMerger(
|
|
79
|
+
const merger = new gsub_gpos_merger_1.GsubGposMerger(ImpLib.Order.fromList("Dimensions", fvar ? fvar.axes.map(a => a.dim) : []), preferred, less);
|
|
80
80
|
return merger.resolve();
|
|
81
81
|
}
|
|
82
82
|
function consolidateGsubGpos(fvar, preferred) {
|
|
83
|
-
const merger = new gsub_gpos_merger_1.GsubGposMerger(
|
|
83
|
+
const merger = new gsub_gpos_merger_1.GsubGposMerger(ImpLib.Order.fromList("Dimensions", fvar ? fvar.axes.map(a => a.dim) : []), preferred, { scripts: new Map(), features: [], lookups: [], featureVariations: [] });
|
|
84
84
|
return merger.resolve();
|
|
85
85
|
}
|
|
86
86
|
//# sourceMappingURL=index.js.map
|
|
@@ -14,7 +14,7 @@ class GlyphSharer {
|
|
|
14
14
|
}
|
|
15
15
|
addFont(inputFont) {
|
|
16
16
|
if (this.fonts.length > 0)
|
|
17
|
-
design_unifier_1.unifyDesignSpacesImpl(this.session, this.fonts[0], inputFont);
|
|
17
|
+
(0, design_unifier_1.unifyDesignSpacesImpl)(this.session, this.fonts[0], inputFont);
|
|
18
18
|
const ur = unifyGlyphByHash(inputFont, this.gsf, this.session, this.sharedGs, this.fonts.length);
|
|
19
19
|
this.fontUnificationResults.push(ur);
|
|
20
20
|
this.fonts.push(inputFont);
|
package/lib/procs/subset.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.subsetFont = void 0;
|
|
|
4
4
|
const Rectify = require("@ot-builder/rectify");
|
|
5
5
|
const initial_visible_glyphs_1 = require("../support/initial-visible-glyphs");
|
|
6
6
|
function subsetFont(font, text, gsf) {
|
|
7
|
-
const { glyphs, rectifier } = initial_visible_glyphs_1.createSubsetRectifier(font, new Set([...text].map(s => s.codePointAt(0))));
|
|
7
|
+
const { glyphs, rectifier } = (0, initial_visible_glyphs_1.createSubsetRectifier)(font, new Set([...text].map(s => s.codePointAt(0))));
|
|
8
8
|
font.glyphs = gsf.createStoreFromList(glyphs);
|
|
9
9
|
Rectify.inPlaceRectifyFontGlyphReferences(rectifier, font);
|
|
10
10
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GlyphHasher = exports.GlyphSharingRectifier = exports.SharedGlyphStore = void 0;
|
|
4
4
|
const Crypto = require("crypto");
|
|
5
|
-
const
|
|
5
|
+
const ImpLib = require("@ot-builder/common-impl");
|
|
6
6
|
const Ot = require("@ot-builder/ot");
|
|
7
7
|
class SharedGlyphProp {
|
|
8
8
|
constructor(glyph, fid, priority) {
|
|
@@ -83,7 +83,7 @@ class GlyphHasher {
|
|
|
83
83
|
computeImpl(glyph) {
|
|
84
84
|
const geomAlg = new HashGeometry(this, this.session.vp);
|
|
85
85
|
const hintAlg = new HashHinting(this, this.session.vp);
|
|
86
|
-
const hr = new
|
|
86
|
+
const hr = new ImpLib.Hasher();
|
|
87
87
|
const hrMetrics = hr.begin();
|
|
88
88
|
hrMetrics.numbers(this.session.vp.toArrayRep(glyph.horizontal.start));
|
|
89
89
|
hrMetrics.numbers(this.session.vp.toArrayRep(glyph.horizontal.end));
|
|
@@ -111,12 +111,12 @@ class HashGeometry {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
empty() {
|
|
114
|
-
const hr = new
|
|
114
|
+
const hr = new ImpLib.Hasher();
|
|
115
115
|
hr.string("Empty");
|
|
116
116
|
return hr;
|
|
117
117
|
}
|
|
118
118
|
contourSet(cs) {
|
|
119
|
-
const hrCs = new
|
|
119
|
+
const hrCs = new ImpLib.Hasher();
|
|
120
120
|
hrCs.string("ContourSet");
|
|
121
121
|
hrCs.number(cs.contours.length);
|
|
122
122
|
for (const c of cs.contours) {
|
|
@@ -132,7 +132,7 @@ class HashGeometry {
|
|
|
132
132
|
return hrCs;
|
|
133
133
|
}
|
|
134
134
|
ttReference(ref) {
|
|
135
|
-
const hr = new
|
|
135
|
+
const hr = new ImpLib.Hasher();
|
|
136
136
|
hr.string("TTReference");
|
|
137
137
|
hr.string(this.gh.compute(ref.to));
|
|
138
138
|
hr.number(ref.transform.xx, ref.transform.xy, ref.transform.yx, ref.transform.yy);
|
|
@@ -145,7 +145,7 @@ class HashGeometry {
|
|
|
145
145
|
return hr;
|
|
146
146
|
}
|
|
147
147
|
geometryList(items) {
|
|
148
|
-
const hr = new
|
|
148
|
+
const hr = new ImpLib.Hasher();
|
|
149
149
|
hr.string("GeometryList");
|
|
150
150
|
hr.number(items.length);
|
|
151
151
|
for (const item of items)
|
|
@@ -167,18 +167,18 @@ class HashHinting {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
empty() {
|
|
170
|
-
const hr = new
|
|
170
|
+
const hr = new ImpLib.Hasher();
|
|
171
171
|
hr.string("Empty");
|
|
172
172
|
return hr;
|
|
173
173
|
}
|
|
174
174
|
ttInstructions(tt) {
|
|
175
|
-
const hr = new
|
|
175
|
+
const hr = new ImpLib.Hasher();
|
|
176
176
|
hr.string("TTInstructions");
|
|
177
177
|
hr.buffer(tt.instructions);
|
|
178
178
|
return hr;
|
|
179
179
|
}
|
|
180
180
|
cffHint(hint) {
|
|
181
|
-
const hr = new
|
|
181
|
+
const hr = new ImpLib.Hasher();
|
|
182
182
|
hr.string("CFFHint");
|
|
183
183
|
hr.include(this.stems("HStem", hint.hStems));
|
|
184
184
|
hr.include(this.stems("VStem", hint.vStems));
|
|
@@ -187,7 +187,7 @@ class HashHinting {
|
|
|
187
187
|
return hr;
|
|
188
188
|
}
|
|
189
189
|
stems(title, stems) {
|
|
190
|
-
const hr = new
|
|
190
|
+
const hr = new ImpLib.Hasher();
|
|
191
191
|
hr.string(title);
|
|
192
192
|
hr.number(stems.length);
|
|
193
193
|
for (const stem of stems) {
|
|
@@ -197,7 +197,7 @@ class HashHinting {
|
|
|
197
197
|
return hr;
|
|
198
198
|
}
|
|
199
199
|
masks(title, masks) {
|
|
200
|
-
const hr = new
|
|
200
|
+
const hr = new ImpLib.Hasher();
|
|
201
201
|
hr.string(title);
|
|
202
202
|
hr.number(masks.length);
|
|
203
203
|
for (const mask of masks) {
|
package/package.json
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ot-builder/cli-proc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/ot-builder/monorepo.git",
|
|
8
|
+
"directory": "packages/cli-proc"
|
|
9
|
+
},
|
|
5
10
|
"main": "./lib/index.js",
|
|
6
11
|
"types": "./lib/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"lib/**/*.js",
|
|
14
|
+
"lib/**/*.json",
|
|
15
|
+
"lib/**/*.d.ts"
|
|
16
|
+
],
|
|
7
17
|
"scripts": {
|
|
8
18
|
"build": "tsc -b ./tsconfig.package.json",
|
|
9
19
|
"clean": "rimraf lib .cache",
|
|
@@ -14,13 +24,13 @@
|
|
|
14
24
|
},
|
|
15
25
|
"dependencies": {
|
|
16
26
|
"tslib": "^2.0.0",
|
|
17
|
-
"@ot-builder/io-bin-font": "1.
|
|
18
|
-
"@ot-builder/primitive": "1.
|
|
19
|
-
"@ot-builder/common-impl": "1.
|
|
20
|
-
"@ot-builder/rectify": "1.
|
|
21
|
-
"@ot-builder/trace": "1.
|
|
22
|
-
"@ot-builder/prelude": "1.
|
|
23
|
-
"@ot-builder/ot": "1.
|
|
27
|
+
"@ot-builder/io-bin-font": "1.1.2",
|
|
28
|
+
"@ot-builder/primitive": "1.1.2",
|
|
29
|
+
"@ot-builder/common-impl": "1.1.2",
|
|
30
|
+
"@ot-builder/rectify": "1.1.2",
|
|
31
|
+
"@ot-builder/trace": "1.1.2",
|
|
32
|
+
"@ot-builder/prelude": "1.1.2",
|
|
33
|
+
"@ot-builder/ot": "1.1.2"
|
|
24
34
|
},
|
|
25
35
|
"devDependencies": {
|
|
26
36
|
"@types/jest": "^26.0.23",
|