@ot-builder/io-bin-ttf 1.5.2 → 1.5.3
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 +100 -1
- package/CHANGELOG.md +24 -2
- package/lib/cvar/index.d.ts +1 -1
- package/lib/glyf/read.js +2 -2
- package/lib/glyf/write.js +9 -5
- package/package.json +15 -15
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,106 @@
|
|
|
2
2
|
"name": "@ot-builder/io-bin-ttf",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 24 Jun 2022 07:03:56 GMT",
|
|
6
|
+
"tag": "@ot-builder/io-bin-ttf_v1.5.3",
|
|
7
|
+
"version": "1.5.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
12
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
13
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22",
|
|
14
|
+
"comment": "Fix bounding box calculation around transformed components"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
19
|
+
"comment": "Bump @ot-builder/bin-util to v1.5.3",
|
|
20
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
25
|
+
"comment": "Bump @ot-builder/common-impl to v1.5.3",
|
|
26
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
31
|
+
"comment": "Bump @ot-builder/errors to v1.5.3",
|
|
32
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
37
|
+
"comment": "Bump @ot-builder/ot-glyphs to v1.5.3",
|
|
38
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
43
|
+
"comment": "Bump @ot-builder/ot-metadata to v1.5.3",
|
|
44
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
49
|
+
"comment": "Bump @ot-builder/prelude to v1.5.3",
|
|
50
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
55
|
+
"comment": "Bump @ot-builder/primitive to v1.5.3",
|
|
56
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
61
|
+
"comment": "Bump @ot-builder/stat-glyphs to v1.5.3",
|
|
62
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
67
|
+
"comment": "Bump @ot-builder/var-store to v1.5.3",
|
|
68
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
73
|
+
"comment": "Bump @ot-builder/variance to v1.5.3",
|
|
74
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"author": "beachball",
|
|
78
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
79
|
+
"comment": "Bump @ot-builder/ot-sfnt to v1.5.3",
|
|
80
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "beachball",
|
|
84
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
85
|
+
"comment": "Bump @ot-builder/io-bin-metadata to v1.5.3",
|
|
86
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "beachball",
|
|
90
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
91
|
+
"comment": "Bump @ot-builder/io-bin-sfnt to v1.5.3",
|
|
92
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"author": "beachball",
|
|
96
|
+
"package": "@ot-builder/io-bin-ttf",
|
|
97
|
+
"comment": "Bump @ot-builder/test-util to v1.5.3",
|
|
98
|
+
"commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"date": "Sat, 30 Apr 2022 01:52:52 GMT",
|
|
6
105
|
"tag": "@ot-builder/io-bin-ttf_v1.5.2",
|
|
7
106
|
"version": "1.5.2",
|
|
8
107
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
# Change Log - @ot-builder/io-bin-ttf
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 24 Jun 2022 07:03:56 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.5.3
|
|
8
|
+
|
|
9
|
+
Fri, 24 Jun 2022 07:03:56 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Fix bounding box calculation around transformed components (otbbuilder-dev@users.noreply.github.com)
|
|
14
|
+
- Bump @ot-builder/bin-util to v1.5.3
|
|
15
|
+
- Bump @ot-builder/common-impl to v1.5.3
|
|
16
|
+
- Bump @ot-builder/errors to v1.5.3
|
|
17
|
+
- Bump @ot-builder/ot-glyphs to v1.5.3
|
|
18
|
+
- Bump @ot-builder/ot-metadata to v1.5.3
|
|
19
|
+
- Bump @ot-builder/prelude to v1.5.3
|
|
20
|
+
- Bump @ot-builder/primitive to v1.5.3
|
|
21
|
+
- Bump @ot-builder/stat-glyphs to v1.5.3
|
|
22
|
+
- Bump @ot-builder/var-store to v1.5.3
|
|
23
|
+
- Bump @ot-builder/variance to v1.5.3
|
|
24
|
+
- Bump @ot-builder/ot-sfnt to v1.5.3
|
|
25
|
+
- Bump @ot-builder/io-bin-metadata to v1.5.3
|
|
26
|
+
- Bump @ot-builder/io-bin-sfnt to v1.5.3
|
|
27
|
+
- Bump @ot-builder/test-util to v1.5.3
|
|
28
|
+
|
|
7
29
|
## 1.5.2
|
|
8
30
|
|
|
9
|
-
Sat, 30 Apr 2022 01:
|
|
31
|
+
Sat, 30 Apr 2022 01:52:52 GMT
|
|
10
32
|
|
|
11
33
|
### Patches
|
|
12
34
|
|
package/lib/cvar/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { Cvt } from "@ot-builder/ot-glyphs";
|
|
|
4
4
|
import { OtVar } from "@ot-builder/variance";
|
|
5
5
|
export declare const CvarIo: {
|
|
6
6
|
read(view: BinaryView, cvt: Cvt.Table, designSpace: OtVar.DesignSpace): void;
|
|
7
|
-
write(frag: Frag, cvt: Cvt.Table, designSpace: OtVar.DesignSpace, acEmpty?: ImpLib.Access<boolean>
|
|
7
|
+
write(frag: Frag, cvt: Cvt.Table, designSpace: OtVar.DesignSpace, acEmpty?: ImpLib.Access<boolean>): void;
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/glyf/read.js
CHANGED
|
@@ -155,8 +155,8 @@ const CompositeGlyph = (0, bin_util_1.Read)((view, gOrd) => {
|
|
|
155
155
|
const ref = new ot_glyphs_1.OtGlyph.TtReference(subGlyf, {
|
|
156
156
|
scaledOffset: !!(flags & shared_1.ComponentFlag.SCALED_COMPONENT_OFFSET),
|
|
157
157
|
xx: scaleX,
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
xy: scale01,
|
|
159
|
+
yx: scale10,
|
|
160
160
|
yy: scaleY,
|
|
161
161
|
dx: 0,
|
|
162
162
|
dy: 0
|
package/lib/glyf/write.js
CHANGED
|
@@ -179,10 +179,10 @@ function writeComponentTransform(frag, flag, transform) {
|
|
|
179
179
|
frag.push(primitive_1.F2D14, transform.yy);
|
|
180
180
|
}
|
|
181
181
|
else if (shared_1.ComponentFlag.WE_HAVE_A_TWO_BY_TWO & flag) {
|
|
182
|
-
frag.push(primitive_1.F2D14, transform.xx);
|
|
183
|
-
frag.push(primitive_1.F2D14, transform.
|
|
184
|
-
frag.push(primitive_1.F2D14, transform.
|
|
185
|
-
frag.push(primitive_1.F2D14, transform.yy);
|
|
182
|
+
frag.push(primitive_1.F2D14, transform.xx); // xScale
|
|
183
|
+
frag.push(primitive_1.F2D14, transform.xy); // scale01
|
|
184
|
+
frag.push(primitive_1.F2D14, transform.yx); // scale10
|
|
185
|
+
frag.push(primitive_1.F2D14, transform.yy); // yScale
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
const CompositeGlyphData = (0, bin_util_1.Write)((frag, cg, iGlyph, gOrd, extraInfoSink) => {
|
|
@@ -210,7 +210,11 @@ const CompositeGlyphData = (0, bin_util_1.Write)((frag, cg, iGlyph, gOrd, extraI
|
|
|
210
210
|
frag.uint16(cg.instructions.byteLength);
|
|
211
211
|
frag.bytes(cg.instructions);
|
|
212
212
|
}
|
|
213
|
-
extraInfoSink.setComponentInfo(iGlyph, rid, flag, targetGID, arg1, arg2, ref.transform.xx,
|
|
213
|
+
extraInfoSink.setComponentInfo(iGlyph, rid, flag, targetGID, arg1, arg2, ref.transform.xx, // xScale
|
|
214
|
+
ref.transform.xy, // scale01
|
|
215
|
+
ref.transform.yx, // scale10
|
|
216
|
+
ref.transform.yy // yScale
|
|
217
|
+
);
|
|
214
218
|
}
|
|
215
219
|
});
|
|
216
220
|
exports.GlyfTableWrite = (0, bin_util_1.Write)((frag, gOrd, outLoca, stat, extraInfoSink) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ot-builder/io-bin-ttf",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ot-builder/bin-util": "1.5.
|
|
28
|
-
"@ot-builder/common-impl": "1.5.
|
|
29
|
-
"@ot-builder/errors": "1.5.
|
|
30
|
-
"@ot-builder/ot-glyphs": "1.5.
|
|
31
|
-
"@ot-builder/ot-metadata": "1.5.
|
|
32
|
-
"@ot-builder/prelude": "1.5.
|
|
33
|
-
"@ot-builder/primitive": "1.5.
|
|
34
|
-
"@ot-builder/stat-glyphs": "1.5.
|
|
35
|
-
"@ot-builder/var-store": "1.5.
|
|
36
|
-
"@ot-builder/variance": "1.5.
|
|
27
|
+
"@ot-builder/bin-util": "1.5.3",
|
|
28
|
+
"@ot-builder/common-impl": "1.5.3",
|
|
29
|
+
"@ot-builder/errors": "1.5.3",
|
|
30
|
+
"@ot-builder/ot-glyphs": "1.5.3",
|
|
31
|
+
"@ot-builder/ot-metadata": "1.5.3",
|
|
32
|
+
"@ot-builder/prelude": "1.5.3",
|
|
33
|
+
"@ot-builder/primitive": "1.5.3",
|
|
34
|
+
"@ot-builder/stat-glyphs": "1.5.3",
|
|
35
|
+
"@ot-builder/var-store": "1.5.3",
|
|
36
|
+
"@ot-builder/variance": "1.5.3",
|
|
37
37
|
"tslib": "^2.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ot-builder/ot-sfnt": "1.5.
|
|
41
|
-
"@ot-builder/io-bin-metadata": "1.5.
|
|
42
|
-
"@ot-builder/io-bin-sfnt": "1.5.
|
|
43
|
-
"@ot-builder/test-util": "1.5.
|
|
40
|
+
"@ot-builder/ot-sfnt": "1.5.3",
|
|
41
|
+
"@ot-builder/io-bin-metadata": "1.5.3",
|
|
42
|
+
"@ot-builder/io-bin-sfnt": "1.5.3",
|
|
43
|
+
"@ot-builder/test-util": "1.5.3",
|
|
44
44
|
"@types/jest": "^26.0.23",
|
|
45
45
|
"jest": "^27.5.1"
|
|
46
46
|
}
|