@ot-builder/io-bin-ttf 1.5.1 → 1.5.4

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 CHANGED
@@ -2,7 +2,292 @@
2
2
  "name": "@ot-builder/io-bin-ttf",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 02 Apr 2022 01:38:49 GMT",
5
+ "date": "Sat, 09 Jul 2022 01:50:43 GMT",
6
+ "tag": "@ot-builder/io-bin-ttf_v1.5.4",
7
+ "version": "1.5.4",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@ot-builder/io-bin-ttf",
13
+ "comment": "Bump @ot-builder/bin-util to v1.5.4",
14
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@ot-builder/io-bin-ttf",
19
+ "comment": "Bump @ot-builder/common-impl to v1.5.4",
20
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@ot-builder/io-bin-ttf",
25
+ "comment": "Bump @ot-builder/errors to v1.5.4",
26
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@ot-builder/io-bin-ttf",
31
+ "comment": "Bump @ot-builder/ot-glyphs to v1.5.4",
32
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@ot-builder/io-bin-ttf",
37
+ "comment": "Bump @ot-builder/ot-metadata to v1.5.4",
38
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@ot-builder/io-bin-ttf",
43
+ "comment": "Bump @ot-builder/prelude to v1.5.4",
44
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@ot-builder/io-bin-ttf",
49
+ "comment": "Bump @ot-builder/primitive to v1.5.4",
50
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@ot-builder/io-bin-ttf",
55
+ "comment": "Bump @ot-builder/stat-glyphs to v1.5.4",
56
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@ot-builder/io-bin-ttf",
61
+ "comment": "Bump @ot-builder/var-store to v1.5.4",
62
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@ot-builder/io-bin-ttf",
67
+ "comment": "Bump @ot-builder/variance to v1.5.4",
68
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@ot-builder/io-bin-ttf",
73
+ "comment": "Bump @ot-builder/ot-sfnt to v1.5.4",
74
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@ot-builder/io-bin-ttf",
79
+ "comment": "Bump @ot-builder/io-bin-metadata to v1.5.4",
80
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@ot-builder/io-bin-ttf",
85
+ "comment": "Bump @ot-builder/io-bin-sfnt to v1.5.4",
86
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
87
+ },
88
+ {
89
+ "author": "beachball",
90
+ "package": "@ot-builder/io-bin-ttf",
91
+ "comment": "Bump @ot-builder/test-util to v1.5.4",
92
+ "commit": "9b9e8a2330ef867a8b7166d554fed1f23188b8b0"
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ {
98
+ "date": "Fri, 24 Jun 2022 07:05:26 GMT",
99
+ "tag": "@ot-builder/io-bin-ttf_v1.5.3",
100
+ "version": "1.5.3",
101
+ "comments": {
102
+ "patch": [
103
+ {
104
+ "author": "otbbuilder-dev@users.noreply.github.com",
105
+ "package": "@ot-builder/io-bin-ttf",
106
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22",
107
+ "comment": "Fix bounding box calculation around transformed components"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@ot-builder/io-bin-ttf",
112
+ "comment": "Bump @ot-builder/bin-util to v1.5.3",
113
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
114
+ },
115
+ {
116
+ "author": "beachball",
117
+ "package": "@ot-builder/io-bin-ttf",
118
+ "comment": "Bump @ot-builder/common-impl to v1.5.3",
119
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
120
+ },
121
+ {
122
+ "author": "beachball",
123
+ "package": "@ot-builder/io-bin-ttf",
124
+ "comment": "Bump @ot-builder/errors to v1.5.3",
125
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
126
+ },
127
+ {
128
+ "author": "beachball",
129
+ "package": "@ot-builder/io-bin-ttf",
130
+ "comment": "Bump @ot-builder/ot-glyphs to v1.5.3",
131
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
132
+ },
133
+ {
134
+ "author": "beachball",
135
+ "package": "@ot-builder/io-bin-ttf",
136
+ "comment": "Bump @ot-builder/ot-metadata to v1.5.3",
137
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
138
+ },
139
+ {
140
+ "author": "beachball",
141
+ "package": "@ot-builder/io-bin-ttf",
142
+ "comment": "Bump @ot-builder/prelude to v1.5.3",
143
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
144
+ },
145
+ {
146
+ "author": "beachball",
147
+ "package": "@ot-builder/io-bin-ttf",
148
+ "comment": "Bump @ot-builder/primitive to v1.5.3",
149
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
150
+ },
151
+ {
152
+ "author": "beachball",
153
+ "package": "@ot-builder/io-bin-ttf",
154
+ "comment": "Bump @ot-builder/stat-glyphs to v1.5.3",
155
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
156
+ },
157
+ {
158
+ "author": "beachball",
159
+ "package": "@ot-builder/io-bin-ttf",
160
+ "comment": "Bump @ot-builder/var-store to v1.5.3",
161
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
162
+ },
163
+ {
164
+ "author": "beachball",
165
+ "package": "@ot-builder/io-bin-ttf",
166
+ "comment": "Bump @ot-builder/variance to v1.5.3",
167
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
168
+ },
169
+ {
170
+ "author": "beachball",
171
+ "package": "@ot-builder/io-bin-ttf",
172
+ "comment": "Bump @ot-builder/ot-sfnt to v1.5.3",
173
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
174
+ },
175
+ {
176
+ "author": "beachball",
177
+ "package": "@ot-builder/io-bin-ttf",
178
+ "comment": "Bump @ot-builder/io-bin-metadata to v1.5.3",
179
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
180
+ },
181
+ {
182
+ "author": "beachball",
183
+ "package": "@ot-builder/io-bin-ttf",
184
+ "comment": "Bump @ot-builder/io-bin-sfnt to v1.5.3",
185
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
186
+ },
187
+ {
188
+ "author": "beachball",
189
+ "package": "@ot-builder/io-bin-ttf",
190
+ "comment": "Bump @ot-builder/test-util to v1.5.3",
191
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
192
+ }
193
+ ]
194
+ }
195
+ },
196
+ {
197
+ "date": "Sat, 30 Apr 2022 01:52:52 GMT",
198
+ "tag": "@ot-builder/io-bin-ttf_v1.5.2",
199
+ "version": "1.5.2",
200
+ "comments": {
201
+ "patch": [
202
+ {
203
+ "author": "beachball",
204
+ "package": "@ot-builder/io-bin-ttf",
205
+ "comment": "Bump @ot-builder/bin-util to v1.5.2",
206
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
207
+ },
208
+ {
209
+ "author": "beachball",
210
+ "package": "@ot-builder/io-bin-ttf",
211
+ "comment": "Bump @ot-builder/common-impl to v1.5.2",
212
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
213
+ },
214
+ {
215
+ "author": "beachball",
216
+ "package": "@ot-builder/io-bin-ttf",
217
+ "comment": "Bump @ot-builder/errors to v1.5.2",
218
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
219
+ },
220
+ {
221
+ "author": "beachball",
222
+ "package": "@ot-builder/io-bin-ttf",
223
+ "comment": "Bump @ot-builder/ot-glyphs to v1.5.2",
224
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
225
+ },
226
+ {
227
+ "author": "beachball",
228
+ "package": "@ot-builder/io-bin-ttf",
229
+ "comment": "Bump @ot-builder/ot-metadata to v1.5.2",
230
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
231
+ },
232
+ {
233
+ "author": "beachball",
234
+ "package": "@ot-builder/io-bin-ttf",
235
+ "comment": "Bump @ot-builder/prelude to v1.5.2",
236
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
237
+ },
238
+ {
239
+ "author": "beachball",
240
+ "package": "@ot-builder/io-bin-ttf",
241
+ "comment": "Bump @ot-builder/primitive to v1.5.2",
242
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
243
+ },
244
+ {
245
+ "author": "beachball",
246
+ "package": "@ot-builder/io-bin-ttf",
247
+ "comment": "Bump @ot-builder/stat-glyphs to v1.5.2",
248
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
249
+ },
250
+ {
251
+ "author": "beachball",
252
+ "package": "@ot-builder/io-bin-ttf",
253
+ "comment": "Bump @ot-builder/var-store to v1.5.2",
254
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
255
+ },
256
+ {
257
+ "author": "beachball",
258
+ "package": "@ot-builder/io-bin-ttf",
259
+ "comment": "Bump @ot-builder/variance to v1.5.2",
260
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
261
+ },
262
+ {
263
+ "author": "beachball",
264
+ "package": "@ot-builder/io-bin-ttf",
265
+ "comment": "Bump @ot-builder/ot-sfnt to v1.5.2",
266
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
267
+ },
268
+ {
269
+ "author": "beachball",
270
+ "package": "@ot-builder/io-bin-ttf",
271
+ "comment": "Bump @ot-builder/io-bin-metadata to v1.5.2",
272
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
273
+ },
274
+ {
275
+ "author": "beachball",
276
+ "package": "@ot-builder/io-bin-ttf",
277
+ "comment": "Bump @ot-builder/io-bin-sfnt to v1.5.2",
278
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
279
+ },
280
+ {
281
+ "author": "beachball",
282
+ "package": "@ot-builder/io-bin-ttf",
283
+ "comment": "Bump @ot-builder/test-util to v1.5.2",
284
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
285
+ }
286
+ ]
287
+ }
288
+ },
289
+ {
290
+ "date": "Sat, 02 Apr 2022 01:40:06 GMT",
6
291
  "tag": "@ot-builder/io-bin-ttf_v1.5.1",
7
292
  "version": "1.5.1",
8
293
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,76 @@
1
1
  # Change Log - @ot-builder/io-bin-ttf
2
2
 
3
- This log was last generated on Sat, 02 Apr 2022 01:38:49 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 09 Jul 2022 01:50:43 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.5.4
8
+
9
+ Sat, 09 Jul 2022 01:50:43 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @ot-builder/bin-util to v1.5.4
14
+ - Bump @ot-builder/common-impl to v1.5.4
15
+ - Bump @ot-builder/errors to v1.5.4
16
+ - Bump @ot-builder/ot-glyphs to v1.5.4
17
+ - Bump @ot-builder/ot-metadata to v1.5.4
18
+ - Bump @ot-builder/prelude to v1.5.4
19
+ - Bump @ot-builder/primitive to v1.5.4
20
+ - Bump @ot-builder/stat-glyphs to v1.5.4
21
+ - Bump @ot-builder/var-store to v1.5.4
22
+ - Bump @ot-builder/variance to v1.5.4
23
+ - Bump @ot-builder/ot-sfnt to v1.5.4
24
+ - Bump @ot-builder/io-bin-metadata to v1.5.4
25
+ - Bump @ot-builder/io-bin-sfnt to v1.5.4
26
+ - Bump @ot-builder/test-util to v1.5.4
27
+
28
+ ## 1.5.3
29
+
30
+ Fri, 24 Jun 2022 07:05:26 GMT
31
+
32
+ ### Patches
33
+
34
+ - Fix bounding box calculation around transformed components (otbbuilder-dev@users.noreply.github.com)
35
+ - Bump @ot-builder/bin-util to v1.5.3
36
+ - Bump @ot-builder/common-impl to v1.5.3
37
+ - Bump @ot-builder/errors to v1.5.3
38
+ - Bump @ot-builder/ot-glyphs to v1.5.3
39
+ - Bump @ot-builder/ot-metadata to v1.5.3
40
+ - Bump @ot-builder/prelude to v1.5.3
41
+ - Bump @ot-builder/primitive to v1.5.3
42
+ - Bump @ot-builder/stat-glyphs to v1.5.3
43
+ - Bump @ot-builder/var-store to v1.5.3
44
+ - Bump @ot-builder/variance to v1.5.3
45
+ - Bump @ot-builder/ot-sfnt to v1.5.3
46
+ - Bump @ot-builder/io-bin-metadata to v1.5.3
47
+ - Bump @ot-builder/io-bin-sfnt to v1.5.3
48
+ - Bump @ot-builder/test-util to v1.5.3
49
+
50
+ ## 1.5.2
51
+
52
+ Sat, 30 Apr 2022 01:52:52 GMT
53
+
54
+ ### Patches
55
+
56
+ - Bump @ot-builder/bin-util to v1.5.2
57
+ - Bump @ot-builder/common-impl to v1.5.2
58
+ - Bump @ot-builder/errors to v1.5.2
59
+ - Bump @ot-builder/ot-glyphs to v1.5.2
60
+ - Bump @ot-builder/ot-metadata to v1.5.2
61
+ - Bump @ot-builder/prelude to v1.5.2
62
+ - Bump @ot-builder/primitive to v1.5.2
63
+ - Bump @ot-builder/stat-glyphs to v1.5.2
64
+ - Bump @ot-builder/var-store to v1.5.2
65
+ - Bump @ot-builder/variance to v1.5.2
66
+ - Bump @ot-builder/ot-sfnt to v1.5.2
67
+ - Bump @ot-builder/io-bin-metadata to v1.5.2
68
+ - Bump @ot-builder/io-bin-sfnt to v1.5.2
69
+ - Bump @ot-builder/test-util to v1.5.2
70
+
7
71
  ## 1.5.1
8
72
 
9
- Sat, 02 Apr 2022 01:38:49 GMT
73
+ Sat, 02 Apr 2022 01:40:06 GMT
10
74
 
11
75
  ### Patches
12
76
 
@@ -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> | undefined): void;
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
- yx: scale01,
159
- xy: scale10,
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.yx);
184
- frag.push(primitive_1.F2D14, transform.xy);
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, ref.transform.yx, ref.transform.xy, ref.transform.yy);
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.1",
4
+ "version": "1.5.4",
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.1",
28
- "@ot-builder/common-impl": "1.5.1",
29
- "@ot-builder/errors": "1.5.1",
30
- "@ot-builder/ot-glyphs": "1.5.1",
31
- "@ot-builder/ot-metadata": "1.5.1",
32
- "@ot-builder/prelude": "1.5.1",
33
- "@ot-builder/primitive": "1.5.1",
34
- "@ot-builder/stat-glyphs": "1.5.1",
35
- "@ot-builder/var-store": "1.5.1",
36
- "@ot-builder/variance": "1.5.1",
27
+ "@ot-builder/bin-util": "1.5.4",
28
+ "@ot-builder/common-impl": "1.5.4",
29
+ "@ot-builder/errors": "1.5.4",
30
+ "@ot-builder/ot-glyphs": "1.5.4",
31
+ "@ot-builder/ot-metadata": "1.5.4",
32
+ "@ot-builder/prelude": "1.5.4",
33
+ "@ot-builder/primitive": "1.5.4",
34
+ "@ot-builder/stat-glyphs": "1.5.4",
35
+ "@ot-builder/var-store": "1.5.4",
36
+ "@ot-builder/variance": "1.5.4",
37
37
  "tslib": "^2.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@ot-builder/ot-sfnt": "1.5.1",
41
- "@ot-builder/io-bin-metadata": "1.5.1",
42
- "@ot-builder/io-bin-sfnt": "1.5.1",
43
- "@ot-builder/test-util": "1.5.1",
40
+ "@ot-builder/ot-sfnt": "1.5.4",
41
+ "@ot-builder/io-bin-metadata": "1.5.4",
42
+ "@ot-builder/io-bin-sfnt": "1.5.4",
43
+ "@ot-builder/test-util": "1.5.4",
44
44
  "@types/jest": "^26.0.23",
45
45
  "jest": "^27.5.1"
46
46
  }