@ot-builder/io-bin-glyph-store 1.8.0 → 1.9.0

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,7 +1,7 @@
1
- import { CffCfg } from "@ot-builder/io-bin-cff";
2
- import { CffCoGlyphsWithNaming } from "@ot-builder/ot-glyphs";
3
- import { ReadGlyphStoreImpl } from "../general/read";
4
- import { WriteGlyphStoreImpl } from "../general/write";
1
+ import { type CffCfg } from "@ot-builder/io-bin-cff";
2
+ import { type CffCoGlyphsWithNaming } from "@ot-builder/ot-glyphs";
3
+ import type { ReadGlyphStoreImpl } from "../general/read";
4
+ import type { WriteGlyphStoreImpl } from "../general/write";
5
5
  export declare const ReadCffGlyphs: ReadGlyphStoreImpl<CffCfg, CffCoGlyphsWithNaming>;
6
6
  export declare const WriteCffGlyphs: WriteGlyphStoreImpl<CffCfg, CffCoGlyphsWithNaming>;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { OtGlyphNamer } from "@ot-builder/ot-glyphs";
1
+ import type { OtGlyphNamer } from "@ot-builder/ot-glyphs";
2
2
  export interface GlyphStoreCfgProps {
3
3
  statOs2XAvgCharWidth?: boolean;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { ReadGlyphStoreImpl } from "../general/read";
2
- import { WriteGlyphStoreImpl } from "../general/write";
1
+ import type { ReadGlyphStoreImpl } from "../general/read";
2
+ import type { WriteGlyphStoreImpl } from "../general/write";
3
3
  export declare const SkipReadGlyphs: ReadGlyphStoreImpl<unknown, null>;
4
4
  export declare const SkipWriteGlyphs: WriteGlyphStoreImpl<unknown, null>;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,9 +1,9 @@
1
- import { OtGlyph } from "@ot-builder/ot-glyphs";
2
- import { Head, Maxp, OtFontIoMetadata } from "@ot-builder/ot-metadata";
3
- import { Sfnt } from "@ot-builder/ot-sfnt";
4
- import { Data } from "@ot-builder/prelude";
5
- import { OtVar } from "@ot-builder/variance";
6
- import { GlyphStoreCfg } from "../cfg/glyph-store-cfg";
1
+ import type { OtGlyph } from "@ot-builder/ot-glyphs";
2
+ import { Head, type Maxp, type OtFontIoMetadata } from "@ot-builder/ot-metadata";
3
+ import type { Sfnt } from "@ot-builder/ot-sfnt";
4
+ import type { Data } from "@ot-builder/prelude";
5
+ import type { OtVar } from "@ot-builder/variance";
6
+ import type { GlyphStoreCfg } from "../cfg/glyph-store-cfg";
7
7
  export type GlyphStoreReadImplCtx = {
8
8
  head: Head.Table;
9
9
  maxp: Maxp.Table;
@@ -21,7 +21,7 @@ function readGlyphStore(sfnt, cfg, md, gsf, cb) {
21
21
  designSpace: designSpace,
22
22
  coStat,
23
23
  hMetricVariable: !!hor.hvar,
24
- vMetricVariable: !!(ver && ver.vvar)
24
+ vMetricVariable: !!(ver === null || ver === void 0 ? void 0 : ver.vvar)
25
25
  });
26
26
  return { glyphs, gOrd, coGlyphs };
27
27
  }
@@ -1,10 +1,10 @@
1
- import { SfntIoTableSink } from "@ot-builder/io-bin-sfnt";
2
- import { TtfWritingExtraInfoSink } from "@ot-builder/io-bin-ttf";
3
- import { OtGlyph } from "@ot-builder/ot-glyphs";
4
- import { Head, Maxp, OtFontMetadata } from "@ot-builder/ot-metadata";
5
- import { Data } from "@ot-builder/prelude";
6
- import { OtVar } from "@ot-builder/variance";
7
- import { GlyphStoreCfg } from "../cfg/glyph-store-cfg";
1
+ import type { SfntIoTableSink } from "@ot-builder/io-bin-sfnt";
2
+ import type { TtfWritingExtraInfoSink } from "@ot-builder/io-bin-ttf";
3
+ import type { OtGlyph } from "@ot-builder/ot-glyphs";
4
+ import type { Head, Maxp, OtFontMetadata } from "@ot-builder/ot-metadata";
5
+ import type { Data } from "@ot-builder/prelude";
6
+ import type { OtVar } from "@ot-builder/variance";
7
+ import type { GlyphStoreCfg } from "../cfg/glyph-store-cfg";
8
8
  export type GlyphStoreWriteExtraInfoSink = TtfWritingExtraInfoSink;
9
9
  export type GlyphStoreWriteImplCtx = {
10
10
  head: Head.Table;
package/lib/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- export { readGlyphStore } from "./general/read";
2
- export { writeGlyphStore, GlyphStoreWriteExtraInfoSink } from "./general/write";
1
+ export { CffCfg, CffCfgProps, CffCfgPt, DefaultCffCfgProps } from "@ot-builder/io-bin-cff";
2
+ export { DefaultTtfCfgProps, NopTtfWritingExtraInfoSink, TtfCfg, TtfCfgProps, TtfCfgPt } from "@ot-builder/io-bin-ttf";
3
3
  export { ReadCffGlyphs, WriteCffGlyphs } from "./cff/index";
4
- export { ReadTtfGlyphs, WriteTtfGlyphs } from "./ttf/index";
5
- export { SkipReadGlyphs, SkipWriteGlyphs } from "./empty/index";
6
- export { NopTtfWritingExtraInfoSink } from "@ot-builder/io-bin-ttf";
7
- export { TtfCfgProps, TtfCfg, TtfCfgPt, DefaultTtfCfgProps } from "@ot-builder/io-bin-ttf";
8
- export { CffCfgProps, CffCfg, CffCfgPt, DefaultCffCfgProps } from "@ot-builder/io-bin-cff";
9
4
  export * from "./cfg/glyph-store-cfg";
5
+ export { SkipReadGlyphs, SkipWriteGlyphs } from "./empty/index";
6
+ export { readGlyphStore } from "./general/read";
7
+ export { GlyphStoreWriteExtraInfoSink, writeGlyphStore } from "./general/write";
8
+ export { ReadTtfGlyphs, WriteTtfGlyphs } from "./ttf/index";
10
9
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1,25 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultCffCfgProps = exports.DefaultTtfCfgProps = exports.NopTtfWritingExtraInfoSink = exports.SkipWriteGlyphs = exports.SkipReadGlyphs = exports.WriteTtfGlyphs = exports.ReadTtfGlyphs = exports.WriteCffGlyphs = exports.ReadCffGlyphs = exports.writeGlyphStore = exports.readGlyphStore = void 0;
3
+ exports.WriteTtfGlyphs = exports.ReadTtfGlyphs = exports.writeGlyphStore = exports.readGlyphStore = exports.SkipWriteGlyphs = exports.SkipReadGlyphs = exports.WriteCffGlyphs = exports.ReadCffGlyphs = exports.NopTtfWritingExtraInfoSink = exports.DefaultTtfCfgProps = exports.DefaultCffCfgProps = void 0;
4
4
  const tslib_1 = require("tslib");
5
- var read_1 = require("./general/read");
6
- Object.defineProperty(exports, "readGlyphStore", { enumerable: true, get: function () { return read_1.readGlyphStore; } });
7
- var write_1 = require("./general/write");
8
- Object.defineProperty(exports, "writeGlyphStore", { enumerable: true, get: function () { return write_1.writeGlyphStore; } });
5
+ var io_bin_cff_1 = require("@ot-builder/io-bin-cff");
6
+ Object.defineProperty(exports, "DefaultCffCfgProps", { enumerable: true, get: function () { return io_bin_cff_1.DefaultCffCfgProps; } });
7
+ var io_bin_ttf_1 = require("@ot-builder/io-bin-ttf");
8
+ Object.defineProperty(exports, "DefaultTtfCfgProps", { enumerable: true, get: function () { return io_bin_ttf_1.DefaultTtfCfgProps; } });
9
+ Object.defineProperty(exports, "NopTtfWritingExtraInfoSink", { enumerable: true, get: function () { return io_bin_ttf_1.NopTtfWritingExtraInfoSink; } });
9
10
  var index_1 = require("./cff/index");
10
11
  Object.defineProperty(exports, "ReadCffGlyphs", { enumerable: true, get: function () { return index_1.ReadCffGlyphs; } });
11
12
  Object.defineProperty(exports, "WriteCffGlyphs", { enumerable: true, get: function () { return index_1.WriteCffGlyphs; } });
12
- var index_2 = require("./ttf/index");
13
- Object.defineProperty(exports, "ReadTtfGlyphs", { enumerable: true, get: function () { return index_2.ReadTtfGlyphs; } });
14
- Object.defineProperty(exports, "WriteTtfGlyphs", { enumerable: true, get: function () { return index_2.WriteTtfGlyphs; } });
15
- var index_3 = require("./empty/index");
16
- Object.defineProperty(exports, "SkipReadGlyphs", { enumerable: true, get: function () { return index_3.SkipReadGlyphs; } });
17
- Object.defineProperty(exports, "SkipWriteGlyphs", { enumerable: true, get: function () { return index_3.SkipWriteGlyphs; } });
18
- var io_bin_ttf_1 = require("@ot-builder/io-bin-ttf");
19
- Object.defineProperty(exports, "NopTtfWritingExtraInfoSink", { enumerable: true, get: function () { return io_bin_ttf_1.NopTtfWritingExtraInfoSink; } });
20
- var io_bin_ttf_2 = require("@ot-builder/io-bin-ttf");
21
- Object.defineProperty(exports, "DefaultTtfCfgProps", { enumerable: true, get: function () { return io_bin_ttf_2.DefaultTtfCfgProps; } });
22
- var io_bin_cff_1 = require("@ot-builder/io-bin-cff");
23
- Object.defineProperty(exports, "DefaultCffCfgProps", { enumerable: true, get: function () { return io_bin_cff_1.DefaultCffCfgProps; } });
24
13
  tslib_1.__exportStar(require("./cfg/glyph-store-cfg"), exports);
14
+ var index_2 = require("./empty/index");
15
+ Object.defineProperty(exports, "SkipReadGlyphs", { enumerable: true, get: function () { return index_2.SkipReadGlyphs; } });
16
+ Object.defineProperty(exports, "SkipWriteGlyphs", { enumerable: true, get: function () { return index_2.SkipWriteGlyphs; } });
17
+ var read_1 = require("./general/read");
18
+ Object.defineProperty(exports, "readGlyphStore", { enumerable: true, get: function () { return read_1.readGlyphStore; } });
19
+ var write_1 = require("./general/write");
20
+ Object.defineProperty(exports, "writeGlyphStore", { enumerable: true, get: function () { return write_1.writeGlyphStore; } });
21
+ var index_3 = require("./ttf/index");
22
+ Object.defineProperty(exports, "ReadTtfGlyphs", { enumerable: true, get: function () { return index_3.ReadTtfGlyphs; } });
23
+ Object.defineProperty(exports, "WriteTtfGlyphs", { enumerable: true, get: function () { return index_3.WriteTtfGlyphs; } });
25
24
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import { MetricBasic, MetricVariance, Vorg } from "@ot-builder/ot-glyphs";
2
- import { Maxp, MetricHead } from "@ot-builder/ot-metadata";
3
- import { Sfnt } from "@ot-builder/ot-sfnt";
4
- import { Data } from "@ot-builder/prelude";
5
- import { OtVar } from "@ot-builder/variance";
2
+ import { type Maxp, MetricHead } from "@ot-builder/ot-metadata";
3
+ import type { Sfnt } from "@ot-builder/ot-sfnt";
4
+ import type { Data } from "@ot-builder/prelude";
5
+ import type { OtVar } from "@ot-builder/variance";
6
6
  export declare function readHMetric(sfnt: Sfnt, maxp: Maxp.Table, hhea: Data.Maybe<MetricHead.Table>, designSpace: Data.Maybe<OtVar.DesignSpace>): {
7
7
  hhea: MetricHead.Table;
8
8
  hmtx: MetricBasic.Table;
@@ -1,9 +1,9 @@
1
- import { SfntIoTableSink } from "@ot-builder/io-bin-sfnt";
2
- import { OtGlyph } from "@ot-builder/ot-glyphs";
3
- import { MetricHead } from "@ot-builder/ot-metadata";
4
- import { Data } from "@ot-builder/prelude";
5
- import { HmtxStat, VmtxStat } from "@ot-builder/stat-glyphs";
6
- import { OtVar } from "@ot-builder/variance";
1
+ import type { SfntIoTableSink } from "@ot-builder/io-bin-sfnt";
2
+ import { type OtGlyph } from "@ot-builder/ot-glyphs";
3
+ import type { MetricHead } from "@ot-builder/ot-metadata";
4
+ import type { Data } from "@ot-builder/prelude";
5
+ import type { HmtxStat, VmtxStat } from "@ot-builder/stat-glyphs";
6
+ import type { OtVar } from "@ot-builder/variance";
7
7
  export declare function writeHMetrics(sink: SfntIoTableSink, writeMetricVariance: boolean, hhea: Data.Maybe<MetricHead.Table>, statHmtx: Data.Maybe<HmtxStat>, gOrd: Data.Order<OtGlyph>, designSpace: Data.Maybe<OtVar.DesignSpace>): void;
8
8
  export declare function writeVMetrics(sink: SfntIoTableSink, writeMetricVariance: boolean, vhea: Data.Maybe<MetricHead.Table>, statVmtx: VmtxStat | null, gOrd: Data.Order<OtGlyph>, designSpace: Data.Maybe<OtVar.DesignSpace>): void;
9
9
  //# sourceMappingURL=write.d.ts.map
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.writeHMetrics = writeHMetrics;
4
4
  exports.writeVMetrics = writeVMetrics;
5
+ const tslib_1 = require("tslib");
5
6
  const bin_util_1 = require("@ot-builder/bin-util");
6
- const ImpLib = require("@ot-builder/common-impl");
7
+ const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
7
8
  const io_bin_metric_1 = require("@ot-builder/io-bin-metric");
8
9
  const ot_glyphs_1 = require("@ot-builder/ot-glyphs");
9
10
  function writeHMetrics(sink, writeMetricVariance, hhea, statHmtx, gOrd, designSpace) {
@@ -1,7 +1,7 @@
1
- import { TtfCfg } from "@ot-builder/io-bin-ttf";
2
- import { TtfCoGlyphs } from "@ot-builder/ot-glyphs";
3
- import { ReadGlyphStoreImpl } from "../general/read";
4
- import { WriteGlyphStoreImpl } from "../general/write";
1
+ import { type TtfCfg } from "@ot-builder/io-bin-ttf";
2
+ import { type TtfCoGlyphs } from "@ot-builder/ot-glyphs";
3
+ import type { ReadGlyphStoreImpl } from "../general/read";
4
+ import type { WriteGlyphStoreImpl } from "../general/write";
5
5
  export declare const ReadTtfGlyphs: ReadGlyphStoreImpl<TtfCfg, TtfCoGlyphs>;
6
6
  export declare const WriteTtfGlyphs: WriteGlyphStoreImpl<TtfCfg, TtfCoGlyphs>;
7
7
  //# sourceMappingURL=index.d.ts.map
package/lib/ttf/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WriteTtfGlyphs = exports.ReadTtfGlyphs = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  const bin_util_1 = require("@ot-builder/bin-util");
5
- const ImpLib = require("@ot-builder/common-impl");
6
+ const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
6
7
  const errors_1 = require("@ot-builder/errors");
7
8
  const io_bin_ttf_1 = require("@ot-builder/io-bin-ttf");
8
9
  const ot_glyphs_1 = require("@ot-builder/ot-glyphs");
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.8.0",
4
+ "version": "1.9.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,26 +24,26 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@ot-builder/bin-util": "1.7.8",
28
- "@ot-builder/common-impl": "1.7.7",
29
- "@ot-builder/errors": "1.7.7",
30
- "@ot-builder/ot-glyphs": "1.7.8",
31
- "@ot-builder/ot-metadata": "1.7.8",
32
- "@ot-builder/io-bin-cff": "1.7.8",
33
- "@ot-builder/io-bin-metric": "1.7.8",
34
- "@ot-builder/io-bin-ttf": "1.8.0",
35
- "@ot-builder/prelude": "1.7.7",
36
- "@ot-builder/primitive": "1.7.8",
37
- "@ot-builder/stat-glyphs": "1.7.8",
38
- "@ot-builder/var-store": "1.7.8",
39
- "@ot-builder/variance": "1.7.8",
40
- "@ot-builder/ot-sfnt": "1.7.8",
41
- "@ot-builder/io-bin-sfnt": "1.7.8",
27
+ "@ot-builder/bin-util": "1.8.0",
28
+ "@ot-builder/common-impl": "1.8.0",
29
+ "@ot-builder/errors": "1.8.0",
30
+ "@ot-builder/ot-glyphs": "1.8.0",
31
+ "@ot-builder/ot-metadata": "1.8.0",
32
+ "@ot-builder/io-bin-cff": "1.8.0",
33
+ "@ot-builder/io-bin-metric": "1.8.0",
34
+ "@ot-builder/io-bin-ttf": "1.9.0",
35
+ "@ot-builder/prelude": "1.8.0",
36
+ "@ot-builder/primitive": "1.8.0",
37
+ "@ot-builder/stat-glyphs": "1.8.0",
38
+ "@ot-builder/var-store": "1.8.0",
39
+ "@ot-builder/variance": "1.8.0",
40
+ "@ot-builder/ot-sfnt": "1.8.0",
41
+ "@ot-builder/io-bin-sfnt": "1.8.0",
42
42
  "tslib": "^2.8.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@ot-builder/io-bin-metadata": "1.7.8",
46
- "@ot-builder/test-util": "1.7.8",
45
+ "@ot-builder/io-bin-metadata": "1.8.0",
46
+ "@ot-builder/test-util": "1.8.0",
47
47
  "@types/jest": "^30.0.0",
48
48
  "jest": "^30.2.0"
49
49
  }