@ot-builder/io-bin-glyph-store 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 CHANGED
@@ -2,7 +2,169 @@
2
2
  "name": "@ot-builder/io-bin-glyph-store",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 03 Jul 2021 01:05:13 GMT",
5
+ "date": "Sat, 25 Sep 2021 01:06:38 GMT",
6
+ "tag": "@ot-builder/io-bin-glyph-store_v1.1.2",
7
+ "version": "1.1.2",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@ot-builder/io-bin-glyph-store",
13
+ "comment": "Bump @ot-builder/bin-util to v1.1.2",
14
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@ot-builder/io-bin-glyph-store",
19
+ "comment": "Bump @ot-builder/common-impl to v1.1.2",
20
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@ot-builder/io-bin-glyph-store",
25
+ "comment": "Bump @ot-builder/errors to v1.1.2",
26
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@ot-builder/io-bin-glyph-store",
31
+ "comment": "Bump @ot-builder/ot-glyphs to v1.1.2",
32
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@ot-builder/io-bin-glyph-store",
37
+ "comment": "Bump @ot-builder/ot-metadata to v1.1.2",
38
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@ot-builder/io-bin-glyph-store",
43
+ "comment": "Bump @ot-builder/io-bin-cff to v1.1.2",
44
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@ot-builder/io-bin-glyph-store",
49
+ "comment": "Bump @ot-builder/io-bin-metric to v1.1.2",
50
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@ot-builder/io-bin-glyph-store",
55
+ "comment": "Bump @ot-builder/io-bin-ttf to v1.1.2",
56
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@ot-builder/io-bin-glyph-store",
61
+ "comment": "Bump @ot-builder/prelude to v1.1.2",
62
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@ot-builder/io-bin-glyph-store",
67
+ "comment": "Bump @ot-builder/primitive to v1.1.2",
68
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@ot-builder/io-bin-glyph-store",
73
+ "comment": "Bump @ot-builder/stat-glyphs to v1.1.2",
74
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@ot-builder/io-bin-glyph-store",
79
+ "comment": "Bump @ot-builder/var-store to v1.1.2",
80
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@ot-builder/io-bin-glyph-store",
85
+ "comment": "Bump @ot-builder/variance to v1.1.2",
86
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
87
+ },
88
+ {
89
+ "author": "beachball",
90
+ "package": "@ot-builder/io-bin-glyph-store",
91
+ "comment": "Bump @ot-builder/ot-sfnt to v1.1.2",
92
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
93
+ },
94
+ {
95
+ "author": "beachball",
96
+ "package": "@ot-builder/io-bin-glyph-store",
97
+ "comment": "Bump @ot-builder/io-bin-sfnt to v1.1.2",
98
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
99
+ },
100
+ {
101
+ "author": "beachball",
102
+ "package": "@ot-builder/io-bin-glyph-store",
103
+ "comment": "Bump @ot-builder/io-bin-metadata to v1.1.2",
104
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@ot-builder/io-bin-glyph-store",
109
+ "comment": "Bump @ot-builder/test-util to v1.1.2",
110
+ "commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
111
+ }
112
+ ]
113
+ }
114
+ },
115
+ {
116
+ "date": "Sat, 11 Sep 2021 01:09:21 GMT",
117
+ "tag": "@ot-builder/io-bin-glyph-store_v1.1.1",
118
+ "version": "1.1.1",
119
+ "comments": {
120
+ "patch": [
121
+ {
122
+ "author": "otbbuilder-dev@users.noreply.github.com",
123
+ "package": "@ot-builder/io-bin-glyph-store",
124
+ "commit": "28bc4c48910f10dcabb090ab68e610ce499caa95",
125
+ "comment": "Bump @ot-builder/io-bin-glyph-store to v1.1.1"
126
+ }
127
+ ]
128
+ }
129
+ },
130
+ {
131
+ "date": "Sun, 18 Jul 2021 02:14:19 GMT",
132
+ "tag": "@ot-builder/io-bin-glyph-store_v1.1.0",
133
+ "version": "1.1.0",
134
+ "comments": {
135
+ "minor": [
136
+ {
137
+ "comment": "Cleanup unnecessary namespaces",
138
+ "author": "otbbuilder-dev@users.noreply.github.com",
139
+ "commit": "c79ab97437319873bfe49602a21eab95d78083e3",
140
+ "package": "@ot-builder/io-bin-glyph-store"
141
+ },
142
+ {
143
+ "comment": "Bump @ot-builder/io-bin-glyph-store to v1.1.0",
144
+ "author": "otbbuilder-dev@users.noreply.github.com",
145
+ "commit": "c79ab97437319873bfe49602a21eab95d78083e3",
146
+ "package": "@ot-builder/io-bin-glyph-store"
147
+ }
148
+ ]
149
+ }
150
+ },
151
+ {
152
+ "date": "Sat, 17 Jul 2021 01:08:07 GMT",
153
+ "tag": "@ot-builder/io-bin-glyph-store_v1.0.11",
154
+ "version": "1.0.11",
155
+ "comments": {
156
+ "patch": [
157
+ {
158
+ "comment": "Bump @ot-builder/io-bin-glyph-store to v1.0.11",
159
+ "author": "otbbuilder-dev@users.noreply.github.com",
160
+ "commit": "7f243f6eb75ed28e2d367af7ed0423d0327529ff",
161
+ "package": "@ot-builder/io-bin-glyph-store"
162
+ }
163
+ ]
164
+ }
165
+ },
166
+ {
167
+ "date": "Sat, 03 Jul 2021 01:07:58 GMT",
6
168
  "tag": "@ot-builder/io-bin-glyph-store_v1.0.10",
7
169
  "version": "1.0.10",
8
170
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,61 @@
1
1
  # Change Log - @ot-builder/io-bin-glyph-store
2
2
 
3
- This log was last generated on Sat, 03 Jul 2021 01:05:13 GMT and should not be manually modified.
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/bin-util to v1.1.2
14
+ - Bump @ot-builder/common-impl to v1.1.2
15
+ - Bump @ot-builder/errors to v1.1.2
16
+ - Bump @ot-builder/ot-glyphs to v1.1.2
17
+ - Bump @ot-builder/ot-metadata to v1.1.2
18
+ - Bump @ot-builder/io-bin-cff to v1.1.2
19
+ - Bump @ot-builder/io-bin-metric to v1.1.2
20
+ - Bump @ot-builder/io-bin-ttf to v1.1.2
21
+ - Bump @ot-builder/prelude to v1.1.2
22
+ - Bump @ot-builder/primitive to v1.1.2
23
+ - Bump @ot-builder/stat-glyphs to v1.1.2
24
+ - Bump @ot-builder/var-store to v1.1.2
25
+ - Bump @ot-builder/variance to v1.1.2
26
+ - Bump @ot-builder/ot-sfnt to v1.1.2
27
+ - Bump @ot-builder/io-bin-sfnt to v1.1.2
28
+ - Bump @ot-builder/io-bin-metadata to v1.1.2
29
+ - Bump @ot-builder/test-util to v1.1.2
30
+
31
+ ## 1.1.1
32
+
33
+ Sat, 11 Sep 2021 01:09:21 GMT
34
+
35
+ ### Patches
36
+
37
+ - Bump @ot-builder/io-bin-glyph-store to v1.1.1 (otbbuilder-dev@users.noreply.github.com)
38
+
39
+ ## 1.1.0
40
+
41
+ Sun, 18 Jul 2021 02:14:19 GMT
42
+
43
+ ### Minor changes
44
+
45
+ - Cleanup unnecessary namespaces (otbbuilder-dev@users.noreply.github.com)
46
+ - Bump @ot-builder/io-bin-glyph-store to v1.1.0 (otbbuilder-dev@users.noreply.github.com)
47
+
48
+ ## 1.0.11
49
+
50
+ Sat, 17 Jul 2021 01:08:07 GMT
51
+
52
+ ### Patches
53
+
54
+ - Bump @ot-builder/io-bin-glyph-store to v1.0.11 (otbbuilder-dev@users.noreply.github.com)
55
+
7
56
  ## 1.0.10
8
57
 
9
- Sat, 03 Jul 2021 01:05:13 GMT
58
+ Sat, 03 Jul 2021 01:07:58 GMT
10
59
 
11
60
  ### Patches
12
61
 
@@ -7,10 +7,10 @@ const read_1 = require("../shared-metrics/read");
7
7
  function readGlyphStore(sfnt, cfg, md, gsf, cb) {
8
8
  const { head, maxp, fvar, hhea, vhea } = md;
9
9
  const designSpace = fvar ? fvar.getDesignSpace() : null;
10
- const hor = read_1.readHMetric(sfnt, maxp, hhea, designSpace);
10
+ const hor = (0, read_1.readHMetric)(sfnt, maxp, hhea, designSpace);
11
11
  const hmStartsAtZero = !!(head.flags & ot_metadata_1.Head.Flags.LeftSidebearingAtX0);
12
12
  let coStat = new stat_glyphs_1.HmtxCoStat(hmStartsAtZero, hor.hmtx, hor.hvar);
13
- const ver = read_1.readVMetric(sfnt, maxp, vhea, designSpace);
13
+ const ver = (0, read_1.readVMetric)(sfnt, maxp, vhea, designSpace);
14
14
  if (ver)
15
15
  coStat = new stat_glyphs_1.VmtxCoStat(ver.vmtx, ver.vvar, ver.vorg, coStat);
16
16
  const glyphs = gsf.createStoreFromSize(maxp.numGlyphs);
@@ -32,8 +32,8 @@ coGlyphs, gOrd, cb) {
32
32
  cb.writeGlyphs(sink, cfg, coGlyphs, gOrd, { head, maxp, designSpace: designSpace, stat });
33
33
  stat.settle();
34
34
  // Write metrics
35
- write_1.writeHMetrics(sink, cb.writeMetricVariance, hhea, statHmtx, gOrd, designSpace);
36
- write_1.writeVMetrics(sink, cb.writeMetricVariance, vhea, statVmtx, gOrd, designSpace);
35
+ (0, write_1.writeHMetrics)(sink, cb.writeMetricVariance, hhea, statHmtx, gOrd, designSpace);
36
+ (0, write_1.writeVMetrics)(sink, cb.writeMetricVariance, vhea, statVmtx, gOrd, designSpace);
37
37
  }
38
38
  exports.writeGlyphStore = writeGlyphStore;
39
39
  //# sourceMappingURL=write.js.map
package/lib/index.js CHANGED
@@ -19,5 +19,5 @@ var io_bin_ttf_1 = require("@ot-builder/io-bin-ttf");
19
19
  Object.defineProperty(exports, "DefaultTtfCfgProps", { enumerable: true, get: function () { return io_bin_ttf_1.DefaultTtfCfgProps; } });
20
20
  var io_bin_cff_1 = require("@ot-builder/io-bin-cff");
21
21
  Object.defineProperty(exports, "DefaultCffCfgProps", { enumerable: true, get: function () { return io_bin_cff_1.DefaultCffCfgProps; } });
22
- tslib_1.__exportStar(require("./cfg/glyph-store-cfg"), exports);
22
+ (0, tslib_1.__exportStar)(require("./cfg/glyph-store-cfg"), exports);
23
23
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.writeVMetrics = exports.writeHMetrics = void 0;
4
4
  const bin_util_1 = require("@ot-builder/bin-util");
5
- const common_impl_1 = require("@ot-builder/common-impl");
5
+ const ImpLib = require("@ot-builder/common-impl");
6
6
  const io_bin_metric_1 = require("@ot-builder/io-bin-metric");
7
7
  const ot_glyphs_1 = require("@ot-builder/ot-glyphs");
8
8
  function writeHMetrics(sink, writeMetricVariance, hhea, statHmtx, gOrd, designSpace) {
@@ -10,7 +10,7 @@ function writeHMetrics(sink, writeMetricVariance, hhea, statHmtx, gOrd, designSp
10
10
  return;
11
11
  sink.add(ot_glyphs_1.MetricBasic.TagHmtx, bin_util_1.Frag.pack(bin_util_1.Frag.from(io_bin_metric_1.MetricBasicIo, statHmtx.hmtx, hhea, gOrd)));
12
12
  if (designSpace && writeMetricVariance && statHmtx.hvar) {
13
- const hvarEmpty = new common_impl_1.ImpLib.State(true);
13
+ const hvarEmpty = new ImpLib.State(true);
14
14
  const buf = bin_util_1.Frag.packFrom(io_bin_metric_1.MetricVarianceIo, statHmtx.hvar, designSpace, hvarEmpty);
15
15
  if (!hvarEmpty.get())
16
16
  sink.add(ot_glyphs_1.MetricVariance.TagHvar, buf);
@@ -23,7 +23,7 @@ function writeVMetrics(sink, writeMetricVariance, vhea, statVmtx, gOrd, designSp
23
23
  sink.add(ot_glyphs_1.MetricBasic.TagVmtx, bin_util_1.Frag.pack(bin_util_1.Frag.from(io_bin_metric_1.MetricBasicIo, statVmtx.vmtx, vhea, gOrd)));
24
24
  sink.add(ot_glyphs_1.Vorg.Tag, bin_util_1.Frag.pack(bin_util_1.Frag.from(io_bin_metric_1.VorgIo, statVmtx.vorg)));
25
25
  if (designSpace && writeMetricVariance && statVmtx.vvar) {
26
- const vvarEmpty = new common_impl_1.ImpLib.State(true);
26
+ const vvarEmpty = new ImpLib.State(true);
27
27
  const buf = bin_util_1.Frag.packFrom(io_bin_metric_1.MetricVarianceIo, statVmtx.vvar, designSpace, vvarEmpty);
28
28
  if (!vvarEmpty.get())
29
29
  sink.add(ot_glyphs_1.MetricVariance.TagVvar, buf);
package/lib/ttf/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WriteTtfGlyphs = exports.ReadTtfGlyphs = void 0;
4
4
  const bin_util_1 = require("@ot-builder/bin-util");
5
- const common_impl_1 = require("@ot-builder/common-impl");
5
+ const ImpLib = require("@ot-builder/common-impl");
6
6
  const errors_1 = require("@ot-builder/errors");
7
7
  const io_bin_ttf_1 = require("@ot-builder/io-bin-ttf");
8
8
  const ot_glyphs_1 = require("@ot-builder/ot-glyphs");
@@ -24,7 +24,7 @@ exports.ReadTtfGlyphs = {
24
24
  };
25
25
  const gvar = new bin_util_1.BinaryView(bGvar).next(io_bin_ttf_1.Gvar.Read, gOrd, cfg, gvarIgnore, ctx.designSpace);
26
26
  }
27
- io_bin_ttf_1.rectifyGlyphOrder(gOrd);
27
+ (0, io_bin_ttf_1.rectifyGlyphOrder)(gOrd);
28
28
  // Co-glyphs
29
29
  const cog = {};
30
30
  const bFpgm = sfnt.tables.get(ot_glyphs_1.Fpgm.Tag);
@@ -48,7 +48,7 @@ exports.WriteTtfGlyphs = {
48
48
  writeMetricVariance: true,
49
49
  writeGlyphs(sfnt, cfg, coGlyphs, gOrd, ctx) {
50
50
  if (ctx.designSpace && coGlyphs.cvt) {
51
- const afEmpty = new common_impl_1.ImpLib.State(false);
51
+ const afEmpty = new ImpLib.State(false);
52
52
  const bCvar = bin_util_1.Frag.packFrom(io_bin_ttf_1.CvarIo, coGlyphs.cvt, ctx.designSpace, afEmpty);
53
53
  if (!afEmpty.get())
54
54
  sfnt.add(ot_glyphs_1.Cvt.TagVar, bCvar);
@@ -60,7 +60,7 @@ exports.WriteTtfGlyphs = {
60
60
  if (coGlyphs.prep)
61
61
  sfnt.add(ot_glyphs_1.Prep.Tag, bin_util_1.Frag.packFrom(io_bin_ttf_1.PrepIo, coGlyphs.prep));
62
62
  if (ctx.designSpace) {
63
- const afEmpty = new common_impl_1.ImpLib.State(false);
63
+ const afEmpty = new ImpLib.State(false);
64
64
  const bGvar = bin_util_1.Frag.packFrom(io_bin_ttf_1.Gvar.Write, gOrd, cfg, ctx.designSpace, afEmpty);
65
65
  if (!afEmpty.get())
66
66
  sfnt.add(io_bin_ttf_1.Gvar.Tag, bGvar);
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "@ot-builder/io-bin-glyph-store",
3
3
  "description": "",
4
- "version": "1.0.10",
4
+ "version": "1.1.2",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/ot-builder/monorepo.git",
9
+ "directory": "packages/io-bin-glyph-store"
10
+ },
6
11
  "main": "./lib/index.js",
7
12
  "types": "./lib/index.d.ts",
13
+ "files": [
14
+ "lib/**/*.js",
15
+ "lib/**/*.json",
16
+ "lib/**/*.d.ts"
17
+ ],
8
18
  "scripts": {
9
19
  "build": "tsc -b ./tsconfig.package.json",
10
20
  "clean": "rimraf lib .cache",
@@ -14,26 +24,26 @@
14
24
  "access": "public"
15
25
  },
16
26
  "dependencies": {
17
- "@ot-builder/bin-util": "1.0.10",
18
- "@ot-builder/common-impl": "1.0.10",
19
- "@ot-builder/errors": "1.0.10",
20
- "@ot-builder/ot-glyphs": "1.0.10",
21
- "@ot-builder/ot-metadata": "1.0.10",
22
- "@ot-builder/io-bin-cff": "1.0.10",
23
- "@ot-builder/io-bin-metric": "1.0.10",
24
- "@ot-builder/io-bin-ttf": "1.0.10",
25
- "@ot-builder/prelude": "1.0.10",
26
- "@ot-builder/primitive": "1.0.10",
27
- "@ot-builder/stat-glyphs": "1.0.10",
28
- "@ot-builder/var-store": "1.0.10",
29
- "@ot-builder/variance": "1.0.10",
30
- "@ot-builder/ot-sfnt": "1.0.10",
31
- "@ot-builder/io-bin-sfnt": "1.0.10",
27
+ "@ot-builder/bin-util": "1.1.2",
28
+ "@ot-builder/common-impl": "1.1.2",
29
+ "@ot-builder/errors": "1.1.2",
30
+ "@ot-builder/ot-glyphs": "1.1.2",
31
+ "@ot-builder/ot-metadata": "1.1.2",
32
+ "@ot-builder/io-bin-cff": "1.1.2",
33
+ "@ot-builder/io-bin-metric": "1.1.2",
34
+ "@ot-builder/io-bin-ttf": "1.1.2",
35
+ "@ot-builder/prelude": "1.1.2",
36
+ "@ot-builder/primitive": "1.1.2",
37
+ "@ot-builder/stat-glyphs": "1.1.2",
38
+ "@ot-builder/var-store": "1.1.2",
39
+ "@ot-builder/variance": "1.1.2",
40
+ "@ot-builder/ot-sfnt": "1.1.2",
41
+ "@ot-builder/io-bin-sfnt": "1.1.2",
32
42
  "tslib": "^2.0.0"
33
43
  },
34
44
  "devDependencies": {
35
- "@ot-builder/io-bin-metadata": "1.0.10",
36
- "@ot-builder/test-util": "1.0.10",
45
+ "@ot-builder/io-bin-metadata": "1.1.2",
46
+ "@ot-builder/test-util": "1.1.2",
37
47
  "@types/jest": "^26.0.23",
38
48
  "jest": "^27.0.6"
39
49
  }