@ot-builder/io-bin-glyph-store 1.7.3 → 1.7.5

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readGlyphStore = void 0;
3
+ exports.readGlyphStore = readGlyphStore;
4
4
  const ot_metadata_1 = require("@ot-builder/ot-metadata");
5
5
  const stat_glyphs_1 = require("@ot-builder/stat-glyphs");
6
6
  const read_1 = require("../shared-metrics/read");
@@ -25,5 +25,4 @@ function readGlyphStore(sfnt, cfg, md, gsf, cb) {
25
25
  });
26
26
  return { glyphs, gOrd, coGlyphs };
27
27
  }
28
- exports.readGlyphStore = readGlyphStore;
29
28
  //# sourceMappingURL=read.js.map
@@ -5,8 +5,7 @@ import { Head, Maxp, OtFontMetadata } from "@ot-builder/ot-metadata";
5
5
  import { Data } from "@ot-builder/prelude";
6
6
  import { OtVar } from "@ot-builder/variance";
7
7
  import { GlyphStoreCfg } from "../cfg/glyph-store-cfg";
8
- export interface GlyphStoreWriteExtraInfoSink extends TtfWritingExtraInfoSink {
9
- }
8
+ export type GlyphStoreWriteExtraInfoSink = TtfWritingExtraInfoSink;
10
9
  export type GlyphStoreWriteImplCtx = {
11
10
  head: Head.Table;
12
11
  maxp: Maxp.Table;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.writeGlyphStore = void 0;
3
+ exports.writeGlyphStore = writeGlyphStore;
4
4
  const stat_glyphs_1 = require("@ot-builder/stat-glyphs");
5
5
  const write_1 = require("../shared-metrics/write");
6
6
  function writeGlyphStore(
@@ -41,5 +41,4 @@ coGlyphs, gOrd, extraInfoSink, cb) {
41
41
  (0, write_1.writeHMetrics)(sink, cb.writeMetricVariance, hhea, statHmtx, gOrd, designSpace);
42
42
  (0, write_1.writeVMetrics)(sink, cb.writeMetricVariance, vhea, statVmtx, gOrd, designSpace);
43
43
  }
44
- exports.writeGlyphStore = writeGlyphStore;
45
44
  //# sourceMappingURL=write.js.map
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readVMetric = exports.readHMetric = void 0;
3
+ exports.readHMetric = readHMetric;
4
+ exports.readVMetric = readVMetric;
4
5
  const bin_util_1 = require("@ot-builder/bin-util");
5
6
  const errors_1 = require("@ot-builder/errors");
6
7
  const io_bin_metric_1 = require("@ot-builder/io-bin-metric");
@@ -19,7 +20,6 @@ function readHMetric(sfnt, maxp, hhea, designSpace) {
19
20
  : null;
20
21
  return { hhea, hmtx, hvar };
21
22
  }
22
- exports.readHMetric = readHMetric;
23
23
  function readVMetric(sfnt, maxp, vhea, designSpace) {
24
24
  const bVmtx = sfnt.tables.get(ot_glyphs_1.MetricBasic.TagVmtx);
25
25
  const bVvar = sfnt.tables.get(ot_glyphs_1.MetricVariance.TagVvar);
@@ -33,5 +33,4 @@ function readVMetric(sfnt, maxp, vhea, designSpace) {
33
33
  : null;
34
34
  return { vhea, vmtx, vvar, vorg };
35
35
  }
36
- exports.readVMetric = readVMetric;
37
36
  //# sourceMappingURL=read.js.map
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.writeVMetrics = exports.writeHMetrics = void 0;
3
+ exports.writeHMetrics = writeHMetrics;
4
+ exports.writeVMetrics = writeVMetrics;
4
5
  const bin_util_1 = require("@ot-builder/bin-util");
5
6
  const ImpLib = require("@ot-builder/common-impl");
6
7
  const io_bin_metric_1 = require("@ot-builder/io-bin-metric");
@@ -16,7 +17,6 @@ function writeHMetrics(sink, writeMetricVariance, hhea, statHmtx, gOrd, designSp
16
17
  sink.add(ot_glyphs_1.MetricVariance.TagHvar, buf);
17
18
  }
18
19
  }
19
- exports.writeHMetrics = writeHMetrics;
20
20
  function writeVMetrics(sink, writeMetricVariance, vhea, statVmtx, gOrd, designSpace) {
21
21
  if (!vhea || !statVmtx)
22
22
  return;
@@ -29,5 +29,4 @@ function writeVMetrics(sink, writeMetricVariance, vhea, statVmtx, gOrd, designSp
29
29
  sink.add(ot_glyphs_1.MetricVariance.TagVvar, buf);
30
30
  }
31
31
  }
32
- exports.writeVMetrics = writeVMetrics;
33
32
  //# sourceMappingURL=write.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ot-builder/io-bin-glyph-store",
3
3
  "description": "",
4
- "version": "1.7.3",
4
+ "version": "1.7.5",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,27 +24,27 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@ot-builder/bin-util": "1.7.3",
28
- "@ot-builder/common-impl": "1.7.3",
29
- "@ot-builder/errors": "1.7.3",
30
- "@ot-builder/ot-glyphs": "1.7.3",
31
- "@ot-builder/ot-metadata": "1.7.3",
32
- "@ot-builder/io-bin-cff": "1.7.3",
33
- "@ot-builder/io-bin-metric": "1.7.3",
34
- "@ot-builder/io-bin-ttf": "1.7.3",
35
- "@ot-builder/prelude": "1.7.3",
36
- "@ot-builder/primitive": "1.7.3",
37
- "@ot-builder/stat-glyphs": "1.7.3",
38
- "@ot-builder/var-store": "1.7.3",
39
- "@ot-builder/variance": "1.7.3",
40
- "@ot-builder/ot-sfnt": "1.7.3",
41
- "@ot-builder/io-bin-sfnt": "1.7.3",
42
- "tslib": "^2.0.0"
27
+ "@ot-builder/bin-util": "1.7.5",
28
+ "@ot-builder/common-impl": "1.7.5",
29
+ "@ot-builder/errors": "1.7.5",
30
+ "@ot-builder/ot-glyphs": "1.7.5",
31
+ "@ot-builder/ot-metadata": "1.7.5",
32
+ "@ot-builder/io-bin-cff": "1.7.5",
33
+ "@ot-builder/io-bin-metric": "1.7.5",
34
+ "@ot-builder/io-bin-ttf": "1.7.5",
35
+ "@ot-builder/prelude": "1.7.5",
36
+ "@ot-builder/primitive": "1.7.5",
37
+ "@ot-builder/stat-glyphs": "1.7.5",
38
+ "@ot-builder/var-store": "1.7.5",
39
+ "@ot-builder/variance": "1.7.5",
40
+ "@ot-builder/ot-sfnt": "1.7.5",
41
+ "@ot-builder/io-bin-sfnt": "1.7.5",
42
+ "tslib": "^2.8.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@ot-builder/io-bin-metadata": "1.7.3",
46
- "@ot-builder/test-util": "1.7.3",
47
- "@types/jest": "^29.5.5",
48
- "jest": "^29.6.2"
45
+ "@ot-builder/io-bin-metadata": "1.7.5",
46
+ "@ot-builder/test-util": "1.7.5",
47
+ "@types/jest": "^29.5.14",
48
+ "jest": "^29.7.0"
49
49
  }
50
50
  }