@ot-builder/cli-proc 1.3.2 → 1.5.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/CHANGELOG.json +172 -1
- package/CHANGELOG.md +47 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/procs/transform-glyphs.d.ts +4 -0
- package/lib/procs/transform-glyphs.js +26 -0
- package/package.json +9 -9
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,178 @@
|
|
|
2
2
|
"name": "@ot-builder/cli-proc",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Sat,
|
|
5
|
+
"date": "Sat, 26 Mar 2022 01:35:44 GMT",
|
|
6
|
+
"tag": "@ot-builder/cli-proc_v1.5.0",
|
|
7
|
+
"version": "1.5.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@ot-builder/cli-proc",
|
|
13
|
+
"comment": "Bump @ot-builder/io-bin-font to v1.5.0",
|
|
14
|
+
"commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@ot-builder/cli-proc",
|
|
19
|
+
"comment": "Bump @ot-builder/primitive to v1.5.0",
|
|
20
|
+
"commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@ot-builder/cli-proc",
|
|
25
|
+
"comment": "Bump @ot-builder/common-impl to v1.5.0",
|
|
26
|
+
"commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@ot-builder/cli-proc",
|
|
31
|
+
"comment": "Bump @ot-builder/rectify to v1.5.0",
|
|
32
|
+
"commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@ot-builder/cli-proc",
|
|
37
|
+
"comment": "Bump @ot-builder/trace to v1.5.0",
|
|
38
|
+
"commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@ot-builder/cli-proc",
|
|
43
|
+
"comment": "Bump @ot-builder/prelude to v1.5.0",
|
|
44
|
+
"commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@ot-builder/cli-proc",
|
|
49
|
+
"comment": "Bump @ot-builder/ot to v1.5.0",
|
|
50
|
+
"commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"date": "Sat, 26 Feb 2022 01:27:19 GMT",
|
|
57
|
+
"tag": "@ot-builder/cli-proc_v1.4.0",
|
|
58
|
+
"version": "1.4.0",
|
|
59
|
+
"comments": {
|
|
60
|
+
"minor": [
|
|
61
|
+
{
|
|
62
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
63
|
+
"package": "@ot-builder/cli-proc",
|
|
64
|
+
"commit": "d5ef5ade3424ec81b7545c9967badddeb9cc8f1b",
|
|
65
|
+
"comment": "Enhance OTBCLI with better subset, drop and transform-glyphs"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
69
|
+
"package": "@ot-builder/cli-proc",
|
|
70
|
+
"commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59",
|
|
71
|
+
"comment": "Export Ot.GeometryUtil"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "beachball",
|
|
75
|
+
"package": "@ot-builder/cli-proc",
|
|
76
|
+
"comment": "Bump @ot-builder/io-bin-font to v1.4.0",
|
|
77
|
+
"commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"author": "beachball",
|
|
81
|
+
"package": "@ot-builder/cli-proc",
|
|
82
|
+
"comment": "Bump @ot-builder/primitive to v1.4.0",
|
|
83
|
+
"commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"author": "beachball",
|
|
87
|
+
"package": "@ot-builder/cli-proc",
|
|
88
|
+
"comment": "Bump @ot-builder/common-impl to v1.4.0",
|
|
89
|
+
"commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"author": "beachball",
|
|
93
|
+
"package": "@ot-builder/cli-proc",
|
|
94
|
+
"comment": "Bump @ot-builder/rectify to v1.4.0",
|
|
95
|
+
"commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"author": "beachball",
|
|
99
|
+
"package": "@ot-builder/cli-proc",
|
|
100
|
+
"comment": "Bump @ot-builder/trace to v1.4.0",
|
|
101
|
+
"commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"author": "beachball",
|
|
105
|
+
"package": "@ot-builder/cli-proc",
|
|
106
|
+
"comment": "Bump @ot-builder/prelude to v1.4.0",
|
|
107
|
+
"commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"author": "beachball",
|
|
111
|
+
"package": "@ot-builder/cli-proc",
|
|
112
|
+
"comment": "Bump @ot-builder/ot to v1.4.0",
|
|
113
|
+
"commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"date": "Sat, 18 Dec 2021 01:19:54 GMT",
|
|
120
|
+
"tag": "@ot-builder/cli-proc_v1.3.3",
|
|
121
|
+
"version": "1.3.3",
|
|
122
|
+
"comments": {
|
|
123
|
+
"patch": [
|
|
124
|
+
{
|
|
125
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
126
|
+
"package": "@ot-builder/cli-proc",
|
|
127
|
+
"commit": "df0486c2b6942815176c652a3150870ba8eacc71",
|
|
128
|
+
"comment": "Optimize frag unifier"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"author": "beachball",
|
|
132
|
+
"package": "@ot-builder/cli-proc",
|
|
133
|
+
"comment": "Bump @ot-builder/io-bin-font to v1.3.3",
|
|
134
|
+
"commit": "df0486c2b6942815176c652a3150870ba8eacc71"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"author": "beachball",
|
|
138
|
+
"package": "@ot-builder/cli-proc",
|
|
139
|
+
"comment": "Bump @ot-builder/primitive to v1.3.3",
|
|
140
|
+
"commit": "df0486c2b6942815176c652a3150870ba8eacc71"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"author": "beachball",
|
|
144
|
+
"package": "@ot-builder/cli-proc",
|
|
145
|
+
"comment": "Bump @ot-builder/common-impl to v1.3.3",
|
|
146
|
+
"commit": "df0486c2b6942815176c652a3150870ba8eacc71"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"author": "beachball",
|
|
150
|
+
"package": "@ot-builder/cli-proc",
|
|
151
|
+
"comment": "Bump @ot-builder/rectify to v1.3.3",
|
|
152
|
+
"commit": "df0486c2b6942815176c652a3150870ba8eacc71"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"author": "beachball",
|
|
156
|
+
"package": "@ot-builder/cli-proc",
|
|
157
|
+
"comment": "Bump @ot-builder/trace to v1.3.3",
|
|
158
|
+
"commit": "df0486c2b6942815176c652a3150870ba8eacc71"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"author": "beachball",
|
|
162
|
+
"package": "@ot-builder/cli-proc",
|
|
163
|
+
"comment": "Bump @ot-builder/prelude to v1.3.3",
|
|
164
|
+
"commit": "df0486c2b6942815176c652a3150870ba8eacc71"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"author": "beachball",
|
|
168
|
+
"package": "@ot-builder/cli-proc",
|
|
169
|
+
"comment": "Bump @ot-builder/ot to v1.3.3",
|
|
170
|
+
"commit": "df0486c2b6942815176c652a3150870ba8eacc71"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"date": "Sat, 11 Dec 2021 01:10:33 GMT",
|
|
6
177
|
"tag": "@ot-builder/cli-proc_v1.3.2",
|
|
7
178
|
"version": "1.3.2",
|
|
8
179
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,57 @@
|
|
|
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, 26 Mar 2022 01:35:44 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.5.0
|
|
8
|
+
|
|
9
|
+
Sat, 26 Mar 2022 01:35:44 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Bump @ot-builder/io-bin-font to v1.5.0
|
|
14
|
+
- Bump @ot-builder/primitive to v1.5.0
|
|
15
|
+
- Bump @ot-builder/common-impl to v1.5.0
|
|
16
|
+
- Bump @ot-builder/rectify to v1.5.0
|
|
17
|
+
- Bump @ot-builder/trace to v1.5.0
|
|
18
|
+
- Bump @ot-builder/prelude to v1.5.0
|
|
19
|
+
- Bump @ot-builder/ot to v1.5.0
|
|
20
|
+
|
|
21
|
+
## 1.4.0
|
|
22
|
+
|
|
23
|
+
Sat, 26 Feb 2022 01:27:19 GMT
|
|
24
|
+
|
|
25
|
+
### Minor changes
|
|
26
|
+
|
|
27
|
+
- Enhance OTBCLI with better subset, drop and transform-glyphs (otbbuilder-dev@users.noreply.github.com)
|
|
28
|
+
- Export Ot.GeometryUtil (otbbuilder-dev@users.noreply.github.com)
|
|
29
|
+
- Bump @ot-builder/io-bin-font to v1.4.0
|
|
30
|
+
- Bump @ot-builder/primitive to v1.4.0
|
|
31
|
+
- Bump @ot-builder/common-impl to v1.4.0
|
|
32
|
+
- Bump @ot-builder/rectify to v1.4.0
|
|
33
|
+
- Bump @ot-builder/trace to v1.4.0
|
|
34
|
+
- Bump @ot-builder/prelude to v1.4.0
|
|
35
|
+
- Bump @ot-builder/ot to v1.4.0
|
|
36
|
+
|
|
37
|
+
## 1.3.3
|
|
38
|
+
|
|
39
|
+
Sat, 18 Dec 2021 01:19:54 GMT
|
|
40
|
+
|
|
41
|
+
### Patches
|
|
42
|
+
|
|
43
|
+
- Optimize frag unifier (otbbuilder-dev@users.noreply.github.com)
|
|
44
|
+
- Bump @ot-builder/io-bin-font to v1.3.3
|
|
45
|
+
- Bump @ot-builder/primitive to v1.3.3
|
|
46
|
+
- Bump @ot-builder/common-impl to v1.3.3
|
|
47
|
+
- Bump @ot-builder/rectify to v1.3.3
|
|
48
|
+
- Bump @ot-builder/trace to v1.3.3
|
|
49
|
+
- Bump @ot-builder/prelude to v1.3.3
|
|
50
|
+
- Bump @ot-builder/ot to v1.3.3
|
|
51
|
+
|
|
7
52
|
## 1.3.2
|
|
8
53
|
|
|
9
|
-
Sat, 11 Dec 2021 01:
|
|
54
|
+
Sat, 11 Dec 2021 01:10:33 GMT
|
|
10
55
|
|
|
11
56
|
### Patches
|
|
12
57
|
|
package/lib/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export { mergeFonts, MergeOptions, consolidateFont } from "./procs/merge-consoli
|
|
|
3
3
|
export { rebaseFont } from "./procs/rebase";
|
|
4
4
|
export { subsetFont } from "./procs/subset";
|
|
5
5
|
export { shareGlyphSet, GlyphSharer, ShareGlyphSetOptions, GlyphUnificationResults } from "./procs/share-glyph-set";
|
|
6
|
+
export { inPlaceTransformFontGlyph } from "./procs/transform-glyphs";
|
|
6
7
|
export { unifyDesignSpaces } from "./support/design-unifier/index";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unifyDesignSpaces = exports.GlyphSharer = exports.shareGlyphSet = exports.subsetFont = exports.rebaseFont = exports.consolidateFont = exports.mergeFonts = exports.gcFont = void 0;
|
|
3
|
+
exports.unifyDesignSpaces = exports.inPlaceTransformFontGlyph = exports.GlyphSharer = exports.shareGlyphSet = exports.subsetFont = exports.rebaseFont = exports.consolidateFont = exports.mergeFonts = exports.gcFont = void 0;
|
|
4
4
|
var gc_1 = require("./procs/gc");
|
|
5
5
|
Object.defineProperty(exports, "gcFont", { enumerable: true, get: function () { return gc_1.gcFont; } });
|
|
6
6
|
var merge_consolidate_1 = require("./procs/merge-consolidate");
|
|
@@ -13,6 +13,8 @@ Object.defineProperty(exports, "subsetFont", { enumerable: true, get: function (
|
|
|
13
13
|
var share_glyph_set_1 = require("./procs/share-glyph-set");
|
|
14
14
|
Object.defineProperty(exports, "shareGlyphSet", { enumerable: true, get: function () { return share_glyph_set_1.shareGlyphSet; } });
|
|
15
15
|
Object.defineProperty(exports, "GlyphSharer", { enumerable: true, get: function () { return share_glyph_set_1.GlyphSharer; } });
|
|
16
|
+
var transform_glyphs_1 = require("./procs/transform-glyphs");
|
|
17
|
+
Object.defineProperty(exports, "inPlaceTransformFontGlyph", { enumerable: true, get: function () { return transform_glyphs_1.inPlaceTransformFontGlyph; } });
|
|
16
18
|
var index_1 = require("./support/design-unifier/index");
|
|
17
19
|
Object.defineProperty(exports, "unifyDesignSpaces", { enumerable: true, get: function () { return index_1.unifyDesignSpaces; } });
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as Ot from "@ot-builder/ot";
|
|
2
|
+
export declare function inPlaceTransformFontGlyph<GS extends Ot.GlyphStore>(font: Ot.Font<GS>, transform: Ot.Glyph.Transform2X3): void;
|
|
3
|
+
export declare function inPlaceTransformFontGlyphDependent<GS extends Ot.GlyphStore>(font: Ot.Font<GS>, transformF: (glyph: Ot.Glyph) => Ot.Glyph.Transform2X3): void;
|
|
4
|
+
//# sourceMappingURL=transform-glyphs.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inPlaceTransformFontGlyphDependent = exports.inPlaceTransformFontGlyph = void 0;
|
|
4
|
+
const Ot = require("@ot-builder/ot");
|
|
5
|
+
function inPlaceTransformFontGlyph(font, transform) {
|
|
6
|
+
inPlaceTransformFontGlyphDependent(font, () => transform);
|
|
7
|
+
}
|
|
8
|
+
exports.inPlaceTransformFontGlyph = inPlaceTransformFontGlyph;
|
|
9
|
+
function inPlaceTransformFontGlyphDependent(font, transformF) {
|
|
10
|
+
for (const g of font.glyphs.decideOrder()) {
|
|
11
|
+
const flattened = Ot.GeometryUtil.apply(Ot.GeometryUtil.Flattener, g.geometry);
|
|
12
|
+
g.geometry = new Ot.Glyph.ContourSet(flattened);
|
|
13
|
+
}
|
|
14
|
+
for (const g of font.glyphs.decideOrder()) {
|
|
15
|
+
if (!g.geometry || g.geometry.type !== Ot.Glyph.GeometryType.ContourSet)
|
|
16
|
+
continue;
|
|
17
|
+
const tfm = transformF(g);
|
|
18
|
+
for (const c of g.geometry.contours) {
|
|
19
|
+
for (let iz = 0; iz < c.length; iz++) {
|
|
20
|
+
c[iz] = Ot.Glyph.PointOps.applyTransform(c[iz], tfm);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.inPlaceTransformFontGlyphDependent = inPlaceTransformFontGlyphDependent;
|
|
26
|
+
//# sourceMappingURL=transform-glyphs.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ot-builder/cli-proc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"tslib": "^2.0.0",
|
|
27
|
-
"@ot-builder/io-bin-font": "1.
|
|
28
|
-
"@ot-builder/primitive": "1.
|
|
29
|
-
"@ot-builder/common-impl": "1.
|
|
30
|
-
"@ot-builder/rectify": "1.
|
|
31
|
-
"@ot-builder/trace": "1.
|
|
32
|
-
"@ot-builder/prelude": "1.
|
|
33
|
-
"@ot-builder/ot": "1.
|
|
27
|
+
"@ot-builder/io-bin-font": "1.5.0",
|
|
28
|
+
"@ot-builder/primitive": "1.5.0",
|
|
29
|
+
"@ot-builder/common-impl": "1.5.0",
|
|
30
|
+
"@ot-builder/rectify": "1.5.0",
|
|
31
|
+
"@ot-builder/trace": "1.5.0",
|
|
32
|
+
"@ot-builder/prelude": "1.5.0",
|
|
33
|
+
"@ot-builder/ot": "1.5.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/jest": "^26.0.23",
|
|
37
|
-
"jest": "^27.
|
|
37
|
+
"jest": "^27.5.1"
|
|
38
38
|
}
|
|
39
39
|
}
|