@ot-builder/io-bin-layout 1.6.1 → 1.6.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 CHANGED
@@ -2,7 +2,130 @@
2
2
  "name": "@ot-builder/io-bin-layout",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 28 Jan 2023 01:10:30 GMT",
5
+ "date": "Sat, 15 Apr 2023 01:05:12 GMT",
6
+ "tag": "@ot-builder/io-bin-layout_v1.6.2",
7
+ "version": "1.6.2",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "otbbuilder-dev@users.noreply.github.com",
12
+ "package": "@ot-builder/io-bin-layout",
13
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9",
14
+ "comment": "Upgrade to typescript 5"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@ot-builder/io-bin-layout",
19
+ "comment": "Bump @ot-builder/bin-composite-types to v1.6.2",
20
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@ot-builder/io-bin-layout",
25
+ "comment": "Bump @ot-builder/bin-util to v1.6.2",
26
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@ot-builder/io-bin-layout",
31
+ "comment": "Bump @ot-builder/errors to v1.6.2",
32
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@ot-builder/io-bin-layout",
37
+ "comment": "Bump @ot-builder/ot-glyphs to v1.6.2",
38
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@ot-builder/io-bin-layout",
43
+ "comment": "Bump @ot-builder/ot-layout to v1.6.2",
44
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@ot-builder/io-bin-layout",
49
+ "comment": "Bump @ot-builder/ot-metadata to v1.6.2",
50
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@ot-builder/io-bin-layout",
55
+ "comment": "Bump @ot-builder/prelude to v1.6.2",
56
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@ot-builder/io-bin-layout",
61
+ "comment": "Bump @ot-builder/primitive to v1.6.2",
62
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@ot-builder/io-bin-layout",
67
+ "comment": "Bump @ot-builder/var-store to v1.6.2",
68
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@ot-builder/io-bin-layout",
73
+ "comment": "Bump @ot-builder/variance to v1.6.2",
74
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@ot-builder/io-bin-layout",
79
+ "comment": "Bump @ot-builder/common-impl to v1.6.2",
80
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@ot-builder/io-bin-layout",
85
+ "comment": "Bump @ot-builder/ot-sfnt to v1.6.2",
86
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
87
+ },
88
+ {
89
+ "author": "beachball",
90
+ "package": "@ot-builder/io-bin-layout",
91
+ "comment": "Bump @ot-builder/io-bin-sfnt to v1.6.2",
92
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
93
+ },
94
+ {
95
+ "author": "beachball",
96
+ "package": "@ot-builder/io-bin-layout",
97
+ "comment": "Bump @ot-builder/io-bin-glyph-store to v1.6.2",
98
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
99
+ },
100
+ {
101
+ "author": "beachball",
102
+ "package": "@ot-builder/io-bin-layout",
103
+ "comment": "Bump @ot-builder/io-bin-metadata to v1.6.2",
104
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@ot-builder/io-bin-layout",
109
+ "comment": "Bump @ot-builder/ot-encoding to v1.6.2",
110
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
111
+ },
112
+ {
113
+ "author": "beachball",
114
+ "package": "@ot-builder/io-bin-layout",
115
+ "comment": "Bump @ot-builder/io-bin-encoding to v1.6.2",
116
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
117
+ },
118
+ {
119
+ "author": "beachball",
120
+ "package": "@ot-builder/io-bin-layout",
121
+ "comment": "Bump @ot-builder/test-util to v1.6.2",
122
+ "commit": "904070a829a8f0464bb379923786f95a40dbbbb9"
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ {
128
+ "date": "Sat, 28 Jan 2023 01:12:19 GMT",
6
129
  "tag": "@ot-builder/io-bin-layout_v1.6.1",
7
130
  "version": "1.6.1",
8
131
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,38 @@
1
1
  # Change Log - @ot-builder/io-bin-layout
2
2
 
3
- This log was last generated on Sat, 28 Jan 2023 01:10:30 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 15 Apr 2023 01:05:12 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.6.2
8
+
9
+ Sat, 15 Apr 2023 01:05:12 GMT
10
+
11
+ ### Patches
12
+
13
+ - Upgrade to typescript 5 (otbbuilder-dev@users.noreply.github.com)
14
+ - Bump @ot-builder/bin-composite-types to v1.6.2
15
+ - Bump @ot-builder/bin-util to v1.6.2
16
+ - Bump @ot-builder/errors to v1.6.2
17
+ - Bump @ot-builder/ot-glyphs to v1.6.2
18
+ - Bump @ot-builder/ot-layout to v1.6.2
19
+ - Bump @ot-builder/ot-metadata to v1.6.2
20
+ - Bump @ot-builder/prelude to v1.6.2
21
+ - Bump @ot-builder/primitive to v1.6.2
22
+ - Bump @ot-builder/var-store to v1.6.2
23
+ - Bump @ot-builder/variance to v1.6.2
24
+ - Bump @ot-builder/common-impl to v1.6.2
25
+ - Bump @ot-builder/ot-sfnt to v1.6.2
26
+ - Bump @ot-builder/io-bin-sfnt to v1.6.2
27
+ - Bump @ot-builder/io-bin-glyph-store to v1.6.2
28
+ - Bump @ot-builder/io-bin-metadata to v1.6.2
29
+ - Bump @ot-builder/ot-encoding to v1.6.2
30
+ - Bump @ot-builder/io-bin-encoding to v1.6.2
31
+ - Bump @ot-builder/test-util to v1.6.2
32
+
7
33
  ## 1.6.1
8
34
 
9
- Sat, 28 Jan 2023 01:10:30 GMT
35
+ Sat, 28 Jan 2023 01:12:19 GMT
10
36
 
11
37
  ### Patches
12
38
 
@@ -11,6 +11,7 @@ export interface LayoutCfgPt {
11
11
  }
12
12
  export declare const DefaultLayoutProps: LayoutCfgProps;
13
13
  export declare enum LookupWriteTrick {
14
+ None = 0,
14
15
  AvoidUseExtension = 1,
15
16
  AvoidBreakSubtable = 2,
16
17
  UseFlatCoverage = 4,
package/lib/cfg/index.js CHANGED
@@ -4,6 +4,7 @@ exports.LookupWriteTrick = exports.DefaultLayoutProps = void 0;
4
4
  exports.DefaultLayoutProps = {};
5
5
  var LookupWriteTrick;
6
6
  (function (LookupWriteTrick) {
7
+ LookupWriteTrick[LookupWriteTrick["None"] = 0] = "None";
7
8
  LookupWriteTrick[LookupWriteTrick["AvoidUseExtension"] = 1] = "AvoidUseExtension";
8
9
  LookupWriteTrick[LookupWriteTrick["AvoidBreakSubtable"] = 2] = "AvoidBreakSubtable";
9
10
  LookupWriteTrick[LookupWriteTrick["UseFlatCoverage"] = 4] = "UseFlatCoverage";
@@ -250,7 +250,9 @@ exports.WriteLookupList = (0, bin_util_1.Write)(function (frag, lookups, lwf, lw
250
250
  dependentLookups.add(dep);
251
251
  }
252
252
  for (const lookup of lookups) {
253
- const trick = lwc.tricks ? lwc.tricks.get(lookup) || 0 : 0;
253
+ const trick = lwc.tricks
254
+ ? lwc.tricks.get(lookup) || cfg_1.LookupWriteTrick.None
255
+ : cfg_1.LookupWriteTrick.None;
254
256
  llw.pushLookup(lookup, dependentLookups.has(lookup), lwf, lwc.gdef, {
255
257
  trick,
256
258
  gOrd: lwc.gOrd,
@@ -5,6 +5,7 @@ import { Data } from "@ot-builder/prelude";
5
5
  import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
6
6
  import { OtVar } from "@ot-builder/variance";
7
7
  export declare enum GposAdjustmentFormat {
8
+ ELIMINATED = 0,
8
9
  X_PLACEMENT = 1,
9
10
  Y_PLACEMENT = 2,
10
11
  X_ADVANCE = 4,
@@ -8,6 +8,7 @@ const variance_1 = require("@ot-builder/variance");
8
8
  const device_table_1 = require("./device-table");
9
9
  var GposAdjustmentFormat;
10
10
  (function (GposAdjustmentFormat) {
11
+ GposAdjustmentFormat[GposAdjustmentFormat["ELIMINATED"] = 0] = "ELIMINATED";
11
12
  GposAdjustmentFormat[GposAdjustmentFormat["X_PLACEMENT"] = 1] = "X_PLACEMENT";
12
13
  GposAdjustmentFormat[GposAdjustmentFormat["Y_PLACEMENT"] = 2] = "Y_PLACEMENT";
13
14
  GposAdjustmentFormat[GposAdjustmentFormat["X_ADVANCE"] = 4] = "X_ADVANCE";
@@ -152,7 +153,7 @@ exports.GposAdjustment = {
152
153
  return estimatePackedSizeImpl(format, adj);
153
154
  },
154
155
  decideFormat(adj) {
155
- let f = 0;
156
+ let f = GposAdjustmentFormat.ELIMINATED;
156
157
  if (!variance_1.OtVar.Ops.isZero(adj.dX))
157
158
  f |= GposAdjustmentFormat.X_PLACEMENT;
158
159
  if (!variance_1.OtVar.Ops.isZero(adj.dY))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ot-builder/io-bin-layout",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,27 +23,27 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@ot-builder/bin-composite-types": "1.6.1",
27
- "@ot-builder/bin-util": "1.6.1",
28
- "@ot-builder/errors": "1.6.1",
29
- "@ot-builder/ot-glyphs": "1.6.1",
30
- "@ot-builder/ot-layout": "1.6.1",
31
- "@ot-builder/ot-metadata": "1.6.1",
32
- "@ot-builder/prelude": "1.6.1",
33
- "@ot-builder/primitive": "1.6.1",
34
- "@ot-builder/var-store": "1.6.1",
35
- "@ot-builder/variance": "1.6.1",
36
- "@ot-builder/common-impl": "1.6.1",
37
- "@ot-builder/ot-sfnt": "1.6.1",
38
- "@ot-builder/io-bin-sfnt": "1.6.1",
26
+ "@ot-builder/bin-composite-types": "1.6.2",
27
+ "@ot-builder/bin-util": "1.6.2",
28
+ "@ot-builder/errors": "1.6.2",
29
+ "@ot-builder/ot-glyphs": "1.6.2",
30
+ "@ot-builder/ot-layout": "1.6.2",
31
+ "@ot-builder/ot-metadata": "1.6.2",
32
+ "@ot-builder/prelude": "1.6.2",
33
+ "@ot-builder/primitive": "1.6.2",
34
+ "@ot-builder/var-store": "1.6.2",
35
+ "@ot-builder/variance": "1.6.2",
36
+ "@ot-builder/common-impl": "1.6.2",
37
+ "@ot-builder/ot-sfnt": "1.6.2",
38
+ "@ot-builder/io-bin-sfnt": "1.6.2",
39
39
  "tslib": "^2.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@ot-builder/io-bin-glyph-store": "1.6.1",
43
- "@ot-builder/io-bin-metadata": "1.6.1",
44
- "@ot-builder/ot-encoding": "1.6.1",
45
- "@ot-builder/io-bin-encoding": "1.6.1",
46
- "@ot-builder/test-util": "1.6.1",
42
+ "@ot-builder/io-bin-glyph-store": "1.6.2",
43
+ "@ot-builder/io-bin-metadata": "1.6.2",
44
+ "@ot-builder/ot-encoding": "1.6.2",
45
+ "@ot-builder/io-bin-encoding": "1.6.2",
46
+ "@ot-builder/test-util": "1.6.2",
47
47
  "@types/jest": "^26.0.23",
48
48
  "jest": "^29.3.1"
49
49
  }