Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@ot-builder/io-bin-layout

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ot-builder/io-bin-layout - npm Package Compare versions

Comparing version
1.7.9
to
1.8.0
+5
-5
lib/base/coord.d.ts

@@ -1,6 +0,6 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Base } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import type { Base } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
export declare const BaseCoord: {

@@ -7,0 +7,0 @@ read(bp: BinaryView, gOrd: Data.Order<OtGlyph>, ivs: Data.Maybe<ReadTimeIVS>): Base.Coord;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ptr16BaseCoordNullable = exports.Ptr16BaseCoord = exports.BaseCoord = void 0;
const tslib_1 = require("tslib");
const bin_composite_types_1 = require("@ot-builder/bin-composite-types");
const ImpLib = require("@ot-builder/common-impl");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const errors_1 = require("@ot-builder/errors");

@@ -7,0 +8,0 @@ const variance_1 = require("@ot-builder/variance");

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Base } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { Data } from "@ot-builder/prelude";
import { OtVar } from "@ot-builder/variance";

@@ -6,0 +6,0 @@ export declare const BaseTableIo: {

@@ -107,5 +107,6 @@ "use strict";

write(frag, script, sortedBaseTags, gOrd, ivs) {
var _a;
frag.push(Ptr16BaseValuesNullable, script.baseValues, sortedBaseTags, gOrd, ivs);
frag.push(Ptr16MinMaxTableNullable, script.defaultMinMax, gOrd, ivs);
if (script.baseLangSysRecords && script.baseLangSysRecords.size) {
if ((_a = script.baseLangSysRecords) === null || _a === void 0 ? void 0 : _a.size) {
const baseLangSysList = [...script.baseLangSysRecords].sort(byTagOrder);

@@ -164,4 +165,5 @@ frag.uint16(baseLangSysList.length);

write(frag, mmt, gOrd, ivs) {
var _a;
frag.push(MinMaxValue, mmt.defaultMinMax, gOrd, ivs);
if (mmt.featMinMax && mmt.featMinMax.size) {
if ((_a = mmt.featMinMax) === null || _a === void 0 ? void 0 : _a.size) {
const fmmList = [...mmt.featMinMax].sort(byTagOrder);

@@ -168,0 +170,0 @@ frag.uint16(fmmList.length);

@@ -1,2 +0,2 @@

import { GsubGpos } from "@ot-builder/ot-layout";
import type { GsubGpos } from "@ot-builder/ot-layout";
export interface LayoutCfgProps {

@@ -3,0 +3,0 @@ gdefWriteTrick?: number;

@@ -1,5 +0,5 @@

import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { LayoutCfg } from "../cfg";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import type { Gdef } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { LayoutCfg } from "../cfg";
export declare const GdefAttachmentPointList: {

@@ -6,0 +6,0 @@ write(target: import("@ot-builder/bin-util").Frag, t: Gdef.AttachPointList, cfg: LayoutCfg, gOrd: Data.Order<OtGlyph>): void;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GdefAttachmentPointList = void 0;
const tslib_1 = require("tslib");
const bin_util_1 = require("@ot-builder/bin-util");
const ImpLib = require("@ot-builder/common-impl");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const errors_1 = require("@ot-builder/errors");

@@ -7,0 +8,0 @@ const primitive_1 = require("@ot-builder/primitive");

import { Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { Data } from "@ot-builder/prelude";
import { WriteTimeIVS } from "@ot-builder/var-store";
import { OtVar } from "@ot-builder/variance";
import { LayoutCfg } from "../cfg";
import type { OtVar } from "@ot-builder/variance";
import type { LayoutCfg } from "../cfg";
export declare const GdefTableIo: {

@@ -9,0 +9,0 @@ write(target: Frag, t: Gdef.Table, cfg: LayoutCfg, gOrd: Data.Order<OtGlyph>, ivs: Data.Maybe<WriteTimeIVS>, designSpace: Data.Maybe<OtVar.DesignSpace>): void;

@@ -1,6 +0,6 @@

import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import { LayoutCfg } from "../cfg";
import { type OtGlyph } from "@ot-builder/ot-glyphs";
import type { Gdef } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { LayoutCfg } from "../cfg";
export declare const LigCaretList: {

@@ -7,0 +7,0 @@ write(target: import("@ot-builder/bin-util").Frag, t: Gdef.LigCaretList, cfg: LayoutCfg, gOrd: Data.Order<OtGlyph>, ivs?: Data.Maybe<WriteTimeIVS>): void;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LigCaretList = void 0;
const tslib_1 = require("tslib");
const bin_util_1 = require("@ot-builder/bin-util");
const ImpLib = require("@ot-builder/common-impl");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const errors_1 = require("@ot-builder/errors");

@@ -7,0 +8,0 @@ const ot_glyphs_1 = require("@ot-builder/ot-glyphs");

@@ -1,4 +0,4 @@

import { Gdef } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { Gdef } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
export declare const CaretValue: {

@@ -5,0 +5,0 @@ write(target: import("@ot-builder/bin-util").Frag, t: Gdef.LigCaret, ivs?: Data.Maybe<WriteTimeIVS>): void;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CaretValue = void 0;
const tslib_1 = require("tslib");
const bin_util_1 = require("@ot-builder/bin-util");
const ImpLib = require("@ot-builder/common-impl");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const errors_1 = require("@ot-builder/errors");

@@ -7,0 +8,0 @@ const variance_1 = require("@ot-builder/variance");

@@ -1,4 +0,4 @@

import { Gdef } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { Gdef } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
export declare const LigGlyph: {

@@ -5,0 +5,0 @@ write(target: import("@ot-builder/bin-util").Frag, t: Gdef.LigCaret[], ivs?: Data.Maybe<WriteTimeIVS>): void;

@@ -1,5 +0,5 @@

import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { LayoutCfg } from "../cfg";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import type { Gdef } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { LayoutCfg } from "../cfg";
type MarkGlyphSets = Array<Gdef.Coverage>;

@@ -6,0 +6,0 @@ export declare const MarkGlyphSets: {

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import { Gpos } from "@ot-builder/ot-layout";
import { LayoutCfg } from "../cfg";
import { TableReadContext, TableWriteContext } from "../gsub-gpos-shared/table";
import type { LayoutCfg } from "../cfg";
import { type TableReadContext, type TableWriteContext } from "../gsub-gpos-shared/table";
export declare const GposTableIo: {

@@ -6,0 +6,0 @@ read(view: BinaryView, cfg: LayoutCfg, trc: TableReadContext): Gpos.Table;

@@ -18,3 +18,2 @@ "use strict";

isExtendedFormat: x => x === 9,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
createReader(x) {

@@ -42,3 +41,2 @@ switch (x) {

},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
*writers() {

@@ -45,0 +43,0 @@ yield new gpos_single_1.GposSingleWriter();

import { Gdef } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { Data } from "@ot-builder/prelude";
export interface IgnoreFlagOptions {

@@ -4,0 +4,0 @@ ignoreBaseGlyphs?: boolean;

@@ -6,3 +6,3 @@ "use strict";

function decideIgnoreFlags(gs, gdef) {
if (!gdef || !gs || !gs.size)
if (!gdef || !(gs === null || gs === void 0 ? void 0 : gs.size))
return null;

@@ -12,5 +12,5 @@ const [nonMarks, marks] = gsSplitMarks(gs, gdef.glyphClassDef);

const igfLigature = igfGlyphClass(nonMarks, gdef.glyphClassDef, ot_layout_1.Gdef.GlyphClass.Ligature, { ignoreLigatures: true }, { ignoreLigatures: false });
const igfMark = igfGlyphClass(marks, gdef.glyphClassDef, ot_layout_1.Gdef.GlyphClass.Mark, { ignoreMarks: true }, { ignoreMarks: false }) ||
igfMarkAttachmentClass(marks, gdef.glyphClassDef, gdef.markAttachClassDef) ||
igfMarkFilterSet(marks, gdef.glyphClassDef, gdef.markGlyphSets);
const igfMark = igfGlyphClass(marks, gdef.glyphClassDef, ot_layout_1.Gdef.GlyphClass.Mark, { ignoreMarks: true }, { ignoreMarks: false })
|| igfMarkAttachmentClass(marks, gdef.glyphClassDef, gdef.markAttachClassDef)
|| igfMarkFilterSet(marks, gdef.glyphClassDef, gdef.markGlyphSets);
return {

@@ -73,3 +73,3 @@ ...igfBase,

}
let finalMarkClass = undefined;
let finalMarkClass;
for (const k of keptMarkClasses) {

@@ -80,3 +80,3 @@ // Hybrid class, fail

// Multiple mark classes to keep, fail
if (finalMarkClass != undefined)
if (finalMarkClass !== undefined)
return null;

@@ -83,0 +83,0 @@ finalMarkClass = k;

@@ -1,4 +0,4 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { GsubGpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { GsubGpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import { Tag } from "@ot-builder/primitive";

@@ -5,0 +5,0 @@ export declare class CFeatureTable<L> {

@@ -9,3 +9,3 @@ "use strict";

const vFeatureParams = view.ptr16Nullable();
let featureParams = undefined;
let featureParams;
if (vFeatureParams)

@@ -12,0 +12,0 @@ featureParams = vFeatureParams.next(feature_param_1.FeatureParams, tag);

@@ -1,4 +0,4 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { Data, Sigma } from "@ot-builder/prelude";
import { Tag } from "@ot-builder/primitive";
import { type BinaryView, Frag } from "@ot-builder/bin-util";
import { type Data, Sigma } from "@ot-builder/prelude";
import { type Tag } from "@ot-builder/primitive";
export declare const FeatureParams: {

@@ -5,0 +5,0 @@ read(view: BinaryView, tag: Tag): Sigma.DependentPair | undefined;

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { GsubGpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { OtVar } from "@ot-builder/variance";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { GsubGpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { OtVar } from "@ot-builder/variance";
type Feature<L> = GsubGpos.FeatureT<L>;

@@ -6,0 +6,0 @@ type FeatureVariation<L> = GsubGpos.FeatureVariationT<L>;

@@ -1,7 +0,7 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import { LookupWriteTrick } from "../cfg";
import { OtlStat } from "../stat";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { LookupWriteTrick } from "../cfg";
import type { OtlStat } from "../stat";
export interface SubtableReadingContext<L> {

@@ -8,0 +8,0 @@ crossReferences: Data.Order<L>;

@@ -1,7 +0,7 @@

import { BinaryView } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef, GsubGpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS } from "@ot-builder/var-store";
import { LookupReaderFactory } from "./general";
import type { BinaryView } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef, type GsubGpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS } from "@ot-builder/var-store";
import { type LookupReaderFactory } from "./general";
export interface LookupReadContext {

@@ -8,0 +8,0 @@ gOrd: Data.Order<OtGlyph>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CReadLookupList = void 0;
const ImpLib = require("@ot-builder/common-impl");
const tslib_1 = require("tslib");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const errors_1 = require("@ot-builder/errors");

@@ -10,3 +11,3 @@ const ot_layout_1 = require("@ot-builder/ot-layout");

readExtensionSubtables(subtableViews) {
let extensionLookupType = undefined;
let extensionLookupType;
const realSubtables = [];

@@ -43,5 +44,5 @@ for (const vSubTable of subtableViews) {

applyGdefMarkAttachDefIgnores(ignores, flags, gdef) {
if (gdef.glyphClassDef &&
gdef.markAttachClassDef &&
flags & general_1.LookupFlag.MarkAttachmentType) {
if (gdef.glyphClassDef
&& gdef.markAttachClassDef
&& flags & general_1.LookupFlag.MarkAttachmentType) {
const maCls = (flags & general_1.LookupFlag.MarkAttachmentType) >>> 8;

@@ -58,6 +59,6 @@ for (const [g, cls] of gdef.glyphClassDef) {

applyGdefMarkGlyphSetIgnores(ignores, flags, markFilteringSet, gdef) {
if (gdef.glyphClassDef &&
gdef.markGlyphSets &&
flags & general_1.LookupFlag.UseMarkFilteringSet &&
markFilteringSet != null) {
if (gdef.glyphClassDef
&& gdef.markGlyphSets
&& flags & general_1.LookupFlag.UseMarkFilteringSet
&& markFilteringSet != null) {
const mgs = gdef.markGlyphSets[markFilteringSet];

@@ -89,3 +90,2 @@ if (!mgs)

const lookups = [];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const readers = [];

@@ -92,0 +92,0 @@ const subtables = [];

@@ -1,4 +0,4 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { GsubGpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { GsubGpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import { Tag } from "@ot-builder/primitive";

@@ -5,0 +5,0 @@ type Feature<L> = GsubGpos.FeatureT<L>;

@@ -1,10 +0,10 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef, GsubGpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import { OtVar } from "@ot-builder/variance";
import { LayoutCfg } from "../cfg";
import { OtlStat } from "../stat";
import { LookupReaderFactory, LookupWriterFactory } from "./general";
import { type BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import type { Gdef, GsubGpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { OtVar } from "@ot-builder/variance";
import type { LayoutCfg } from "../cfg";
import type { OtlStat } from "../stat";
import type { LookupReaderFactory, LookupWriterFactory } from "./general";
export interface TableReadContext {

@@ -11,0 +11,0 @@ gOrd: Data.Order<OtGlyph>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CGsubGposTable = void 0;
const tslib_1 = require("tslib");
const bin_util_1 = require("@ot-builder/bin-util");
const ImpLib = require("@ot-builder/common-impl");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const errors_1 = require("@ot-builder/errors");

@@ -15,2 +16,3 @@ const feature_list_1 = require("./feature-list");

read(view, cfg, lrf, trc) {
var _a;
const majorVersion = view.uint16();

@@ -29,3 +31,3 @@ const minorVersion = view.uint16();

const scripts = vScriptList.next(new script_lang_1.CScriptList(), fOrd);
const featureVariations = vFeatureVariation && trc.designSpace && trc.designSpace.length
const featureVariations = vFeatureVariation && ((_a = trc.designSpace) === null || _a === void 0 ? void 0 : _a.length)
? vFeatureVariation.next(new feature_variation_1.CFeatureVariations(), trc.designSpace, fOrd, lOrd)

@@ -36,2 +38,3 @@ : null;

write(frag, table, cfg, lwf, twc) {
var _a;
const lwc = { ...twc, tricks: (0, trick_1.setLookupTricks)(table, cfg) };

@@ -47,3 +50,3 @@ const fLookups = bin_util_1.Frag.solidFrom(write_lookup_list_1.WriteLookupList, table.lookups, lwf, lwc);

const fScripts = bin_util_1.Frag.solidFrom(new script_lang_1.CScriptList(), table.scripts, fOrd);
const fFeatureVariations = !table.featureVariations || !twc.designSpace || !twc.designSpace.length
const fFeatureVariations = !table.featureVariations || !((_a = twc.designSpace) === null || _a === void 0 ? void 0 : _a.length)
? null

@@ -50,0 +53,0 @@ : bin_util_1.Frag.solidFrom(new feature_variation_1.CFeatureVariations(), table.featureVariations, twc.designSpace, fOrd, lOrd);

@@ -1,4 +0,4 @@

import { GsubGpos } from "@ot-builder/ot-layout";
import { LayoutCfg, LookupWriteTrick } from "../cfg";
import type { GsubGpos } from "@ot-builder/ot-layout";
import type { LayoutCfg, LookupWriteTrick } from "../cfg";
export declare function setLookupTricks<L extends GsubGpos.LookupProp>(table: GsubGpos.TableT<L>, cfg: LayoutCfg): Map<L, LookupWriteTrick>;
//# sourceMappingURL=trick.d.ts.map
import { Write } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gdef, GsubGpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { WriteTimeIVS } from "@ot-builder/var-store";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { type Gdef, type GsubGpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { WriteTimeIVS } from "@ot-builder/var-store";
import { LookupWriteTrick } from "../cfg";
import { OtlStat } from "../stat";
import { LookupWriterFactory } from "./general";
import { type OtlStat } from "../stat";
import { type LookupWriterFactory } from "./general";
export interface LookupWriteContext<L> {

@@ -10,0 +10,0 @@ gOrd: Data.Order<OtGlyph>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WriteLookupList = void 0;
const tslib_1 = require("tslib");
const bin_util_1 = require("@ot-builder/bin-util");
const ImpLib = require("@ot-builder/common-impl");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const errors_1 = require("@ot-builder/errors");

@@ -47,9 +48,9 @@ const ot_layout_1 = require("@ot-builder/ot-layout");

measureHeaderSize(h) {
return (primitive_1.UInt16.size * (3 + h.subtableIDs.length) +
(h.markFilteringSet != null ? primitive_1.UInt16.size : 0));
return (primitive_1.UInt16.size * (3 + h.subtableIDs.length)
+ (h.markFilteringSet != null ? primitive_1.UInt16.size : 0));
}
/** Measure lookup header size with extension -- used when writing subtable */
measureHeaderSizeWithExtension(h) {
return (this.measureHeaderSize(h) +
(h.useExtension ? SizeOfExtSubtable * h.subtableIDs.length : 0));
return (this.measureHeaderSize(h)
+ (h.useExtension ? SizeOfExtSubtable * h.subtableIDs.length : 0));
}

@@ -93,3 +94,3 @@ pushLookup(lookup, lookupIsDependency, lwf, gdef, context) {

let flags = 0;
let markFilteringSet = undefined;
let markFilteringSet;
if (lookup.rightToLeft)

@@ -246,3 +247,3 @@ flags |= general_1.LookupFlag.RightToLeft;

}
exports.WriteLookupList = (0, bin_util_1.Write)(function (frag, lookups, lwf, lwc) {
exports.WriteLookupList = (0, bin_util_1.Write)((frag, lookups, lwf, lwc) => {
const crossReferences = ImpLib.Order.fromList(`Lookups`, lookups);

@@ -249,0 +250,0 @@ const llw = new LookupListWriter();

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import { Gsub } from "@ot-builder/ot-layout";
import { LayoutCfg } from "../cfg";
import { TableReadContext, TableWriteContext } from "../gsub-gpos-shared/table";
import type { LayoutCfg } from "../cfg";
import { type TableReadContext, type TableWriteContext } from "../gsub-gpos-shared/table";
export declare const GsubTableIo: {

@@ -6,0 +6,0 @@ read(view: BinaryView, cfg: LayoutCfg, trc: TableReadContext): Gsub.Table;

@@ -16,3 +16,2 @@ "use strict";

isExtendedFormat: x => x === 7,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
createReader(x) {

@@ -38,3 +37,2 @@ switch (x) {

},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
*writers() {

@@ -41,0 +39,0 @@ yield new gsub_single_1.GsubSingleWriter();

@@ -1,4 +0,4 @@

import { BinaryView } from "@ot-builder/bin-util";
import { Gpos, Gsub, GsubGpos } from "@ot-builder/ot-layout";
import { LookupReader, SubtableReadingContext } from "../gsub-gpos-shared/general";
import type { BinaryView } from "@ot-builder/bin-util";
import { Gpos, Gsub, type GsubGpos } from "@ot-builder/ot-layout";
import type { LookupReader, SubtableReadingContext } from "../gsub-gpos-shared/general";
declare abstract class ChainingContextualReader<L, CL extends L & GsubGpos.ChainingProp<L>> implements LookupReader<L, CL> {

@@ -5,0 +5,0 @@ private chaining;

import { Frag } from "@ot-builder/bin-util";
import { Gpos, Gsub, GsubGpos } from "@ot-builder/ot-layout";
import { LookupWriter, SubtableWriteContext } from "../gsub-gpos-shared/general";
import { Gpos, Gsub, type GsubGpos } from "@ot-builder/ot-layout";
import type { LookupWriter, SubtableWriteContext } from "../gsub-gpos-shared/general";
declare abstract class ChainingContextualWriter<L, C extends L & GsubGpos.ChainingProp<L>> implements LookupWriter<L, C> {

@@ -5,0 +5,0 @@ private wCoverageRule;

@@ -23,5 +23,5 @@ "use strict";

glyphSetCompatibleWithExistingClassDef(gs, cd) {
if (!gs || !gs.size)
if (!(gs === null || gs === void 0 ? void 0 : gs.size))
return undefined;
let firstClass = undefined;
let firstClass;
for (const g of gs) {

@@ -44,3 +44,3 @@ const gk = cd.get(g);

glyphSetCompatibleWithNewClassDef(gs, cd) {
if (!gs || !gs.size)
if (!(gs === null || gs === void 0 ? void 0 : gs.size))
return undefined;

@@ -105,7 +105,7 @@ for (const g of gs) {

estimateCurrentSize() {
return (primitive_1.UInt16.size *
(8 +
class_def_1.MaxClsDefItemWords *
(this.cdBacktrack.size + this.cdInput.size + this.cdLookAhead.size) +
this.ruleComplexity));
return (primitive_1.UInt16.size
* (8
+ class_def_1.MaxClsDefItemWords
* (this.cdBacktrack.size + this.cdInput.size + this.cdLookAhead.size)
+ this.ruleComplexity));
}

@@ -223,3 +223,3 @@ compatibleRuleComplexity(comp) {

const a = s.classRules.get(c);
if (!a || !a.length) {
if (!(a === null || a === void 0 ? void 0 : a.length)) {
frag.ptr16(null);

@@ -226,0 +226,0 @@ }

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { type BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gpos } from "@ot-builder/ot-layout";
import { LookupReader, LookupWriter, SubtableReadingContext, SubtableWriteContext } from "../gsub-gpos-shared/general";
import { type LookupReader, type LookupWriter, type SubtableReadingContext, type SubtableWriteContext } from "../gsub-gpos-shared/general";
export declare class GposCursiveReader implements LookupReader<Gpos.Lookup, Gpos.Cursive> {

@@ -6,0 +6,0 @@ createLookup(): import("@ot-builder/prelude").CaseType<typeof Gpos.LookupType.Cursive, Gpos.CursiveProp>;

@@ -57,5 +57,5 @@ "use strict";

tryAddMapping(from, to) {
const deltaSize = primitive_1.UInt16.size * (2 + coverage_1.MaxCovItemWords) + // 1 cov + 2 ptr
gpos_anchor_1.GposAnchor.measure(to.entry) +
gpos_anchor_1.GposAnchor.measure(to.exit);
const deltaSize = primitive_1.UInt16.size * (2 + coverage_1.MaxCovItemWords) // 1 cov + 2 ptr
+ gpos_anchor_1.GposAnchor.measure(to.entry)
+ gpos_anchor_1.GposAnchor.measure(to.exit);
if (this.size + deltaSize > general_1.SubtableSizeLimit)

@@ -62,0 +62,0 @@ return false;

@@ -1,5 +0,5 @@

import { BinaryView } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import type { BinaryView } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gpos } from "@ot-builder/ot-layout";
import { LookupReader, SubtableReadingContext } from "../gsub-gpos-shared/general";
import type { LookupReader, SubtableReadingContext } from "../gsub-gpos-shared/general";
declare class GposMarkReaderBase {

@@ -6,0 +6,0 @@ protected getStartClass(marks: Iterable<[OtGlyph, Gpos.MarkRecord]>): number;

import { Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { WriteTimeIVS } from "@ot-builder/var-store";
import { LookupWriter, SubtableWriteContext } from "../gsub-gpos-shared/general";
import { CovAuxMappingT } from "../shared/coverage";
import type { Data } from "@ot-builder/prelude";
import type { WriteTimeIVS } from "@ot-builder/var-store";
import { type LookupWriter, type SubtableWriteContext } from "../gsub-gpos-shared/general";
import { type CovAuxMappingT } from "../shared/coverage";
type SingleMarkRecord<G> = {

@@ -9,0 +9,0 @@ glyph: G;

@@ -108,5 +108,5 @@ "use strict";

return planMark;
if (planMark &&
planMark[0].measure(ivs) + planMark[1].measure(ivs) <
planBase[0].measure(ivs) + planBase[1].measure(ivs)) {
if (planMark
&& planMark[0].measure(ivs) + planMark[1].measure(ivs)
< planBase[0].measure(ivs) + planBase[1].measure(ivs)) {
return planMark;

@@ -155,4 +155,4 @@ }

size +=
primitive_1.UInt16.size * (2 + coverage_1.MaxCovItemWords) + // 1 cov item + 1 mark class id + 1 ptr
gpos_anchor_1.GposAnchor.hashMeasure(anchorSet, ivs, rec.anchor);
primitive_1.UInt16.size * (2 + coverage_1.MaxCovItemWords) // 1 cov item + 1 mark class id + 1 ptr
+ gpos_anchor_1.GposAnchor.hashMeasure(anchorSet, ivs, rec.anchor);
}

@@ -198,11 +198,11 @@ for (const [g, br] of this.bases) {

size +=
primitive_1.UInt16.size * (2 + coverage_1.MaxCovItemWords) +
gpos_anchor_1.GposAnchor.hashMeasure(anchorSet, ivs, rec.anchor);
primitive_1.UInt16.size * (2 + coverage_1.MaxCovItemWords)
+ gpos_anchor_1.GposAnchor.hashMeasure(anchorSet, ivs, rec.anchor);
}
for (const [g, br] of this.bases) {
size +=
primitive_1.UInt16.size *
(2 +
coverage_1.MaxCovItemWords + //1 cov + 1 ptr + 1 component count
br.baseAnchors.length * this.relocation.reward.length);
primitive_1.UInt16.size
* (2
+ coverage_1.MaxCovItemWords //1 cov + 1 ptr + 1 component count
+ br.baseAnchors.length * this.relocation.reward.length);
for (let component = 0; component < br.baseAnchors.length; component++) {

@@ -298,3 +298,3 @@ for (let clsAnchor = 0; clsAnchor < this.relocation.reward.length; clsAnchor++) {

if (fConflict)
break loopCls;
break;
// Ensure the base array is a rectangular matrix

@@ -301,0 +301,0 @@ if (firstClass) {

@@ -1,4 +0,4 @@

import { BinaryView } from "@ot-builder/bin-util";
import type { BinaryView } from "@ot-builder/bin-util";
import { Gpos } from "@ot-builder/ot-layout";
import { LookupReader, SubtableReadingContext } from "../gsub-gpos-shared/general";
import type { LookupReader, SubtableReadingContext } from "../gsub-gpos-shared/general";
export declare class GposPairReader implements LookupReader<Gpos.Lookup, Gpos.Pair> {

@@ -5,0 +5,0 @@ createLookup(): import("@ot-builder/prelude").CaseType<typeof Gpos.LookupType.Pair, Gpos.PairProp>;

import { Frag } from "@ot-builder/bin-util";
import { Gpos } from "@ot-builder/ot-layout";
import { LookupWriter, SubtableWriteContext } from "../gsub-gpos-shared/general";
import type { LookupWriter, SubtableWriteContext } from "../gsub-gpos-shared/general";
export declare class GposPairWriter implements LookupWriter<Gpos.Lookup, Gpos.Pair> {

@@ -5,0 +5,0 @@ canBeUsed(l: Gpos.Lookup): l is Gpos.Pair;

@@ -105,2 +105,3 @@ "use strict";

write(frag, dt, ctx) {
var _a;
const plans = [];

@@ -127,3 +128,3 @@ let format1 = 0;

for (let gidFirst = 0; gidFirst < plans.length; gidFirst++) {
if (!plans[gidFirst] || !plans[gidFirst].length)
if (!((_a = plans[gidFirst]) === null || _a === void 0 ? void 0 : _a.length))
continue;

@@ -200,3 +201,3 @@ cov.push(gidFirst);

for (const [cl, gs] of cc1) {
if (gs && gs.length) {
if (gs === null || gs === void 0 ? void 0 : gs.length) {
forward[cl] = clf++;

@@ -203,0 +204,0 @@ }

@@ -1,4 +0,4 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { type BinaryView, Frag } from "@ot-builder/bin-util";
import { Gpos } from "@ot-builder/ot-layout";
import { LookupReader, LookupWriter, SubtableReadingContext, SubtableWriteContext } from "../gsub-gpos-shared/general";
import { type LookupReader, type LookupWriter, type SubtableReadingContext, type SubtableWriteContext } from "../gsub-gpos-shared/general";
export declare class GposSingleReader implements LookupReader<Gpos.Lookup, Gpos.Single> {

@@ -5,0 +5,0 @@ createLookup(): import("@ot-builder/prelude").CaseType<typeof Gpos.LookupType.Single, Gpos.SingleProp>;

@@ -163,3 +163,3 @@ "use strict";

for (const [gidDiff, [adj, gids]] of st.mappings) {
if (gids && gids.length) {
if (gids === null || gids === void 0 ? void 0 : gids.length) {
while (gids.length) {

@@ -166,0 +166,0 @@ const len = this.buildUniform(frags, adj, gids, ctx);

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { type BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gsub } from "@ot-builder/ot-layout";
import { LookupReader, LookupWriter, SubtableReadingContext, SubtableWriteContext } from "../gsub-gpos-shared/general";
import { type LookupReader, type LookupWriter, type SubtableReadingContext, type SubtableWriteContext } from "../gsub-gpos-shared/general";
export declare class GsubLigatureReader implements LookupReader<Gsub.Lookup, Gsub.Ligature> {

@@ -6,0 +6,0 @@ createLookup(): import("@ot-builder/prelude").CaseType<typeof Gsub.LookupType.Ligature, Gsub.LigatureProp>;

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { type BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Gsub } from "@ot-builder/ot-layout";
import { LookupReader, LookupWriter, SubtableReadingContext, SubtableWriteContext } from "../gsub-gpos-shared/general";
import { type LookupReader, type LookupWriter, type SubtableReadingContext, type SubtableWriteContext } from "../gsub-gpos-shared/general";
declare class GsubMultiAlternateReaderBase {

@@ -6,0 +6,0 @@ parseSubtable(view: BinaryView, lookup: Gsub.Multiple | Gsub.Alternate, context: SubtableReadingContext<Gsub.Lookup>): void;

@@ -1,4 +0,4 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { type BinaryView, Frag } from "@ot-builder/bin-util";
import { Gsub } from "@ot-builder/ot-layout";
import { LookupReader, LookupWriter, SubtableReadingContext, SubtableWriteContext } from "../gsub-gpos-shared/general";
import type { LookupReader, LookupWriter, SubtableReadingContext, SubtableWriteContext } from "../gsub-gpos-shared/general";
export declare class GsubReverseReader implements LookupReader<Gsub.Lookup, Gsub.ReverseSub> {

@@ -5,0 +5,0 @@ createLookup(): import("@ot-builder/prelude").CaseType<typeof Gsub.LookupType.Reverse, Gsub.ReverseSubProp>;

@@ -1,4 +0,4 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { type BinaryView, Frag } from "@ot-builder/bin-util";
import { Gsub } from "@ot-builder/ot-layout";
import { LookupReader, LookupWriter, SubtableReadingContext, SubtableWriteContext } from "../gsub-gpos-shared/general";
import { type LookupReader, type LookupWriter, type SubtableReadingContext, type SubtableWriteContext } from "../gsub-gpos-shared/general";
export declare class GsubSingleReader implements LookupReader<Gsub.Lookup, Gsub.Single> {

@@ -5,0 +5,0 @@ createLookup(): import("@ot-builder/prelude").CaseType<typeof Gsub.LookupType.Single, Gsub.SingleProp>;

@@ -133,3 +133,3 @@ "use strict";

for (const [gidDiff, mappings] of st.mappings) {
if (mappings && mappings.length) {
if (mappings === null || mappings === void 0 ? void 0 : mappings.length) {
while (mappings.length) {

@@ -136,0 +136,0 @@ const len = this.buildUniform(frags, gidDiff, mappings, ctx);

@@ -1,5 +0,5 @@

import { OtGlyph } from "@ot-builder/ot-glyphs";
import { DicingStore, Gpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { SubtableWriteContext } from "../../gsub-gpos-shared/general";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { type DicingStore, Gpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { SubtableWriteContext } from "../../gsub-gpos-shared/general";
export declare class AdjStore {

@@ -6,0 +6,0 @@ indexMatrix: ReadonlyArray<ReadonlyArray<number>>;

@@ -47,6 +47,8 @@ "use strict";

firstClassValid(c1) {
return this.cFirst[c1] && this.cFirst[c1].length;
var _a;
return (_a = this.cFirst[c1]) === null || _a === void 0 ? void 0 : _a.length;
}
secondClassValid(c2) {
return this.cSecond[c2] && this.cSecond[c2].length;
var _a;
return (_a = this.cSecond[c2]) === null || _a === void 0 ? void 0 : _a.length;
}

@@ -278,4 +280,4 @@ getEffectiveFirstClasses() {

dataSize +=
gpos_adjust_1.GposAdjustment.measure(cellAdj[0], format1) +
gpos_adjust_1.GposAdjustment.measure(cellAdj[1], format2);
gpos_adjust_1.GposAdjustment.measure(cellAdj[0], format1)
+ gpos_adjust_1.GposAdjustment.measure(cellAdj[1], format2);
}

@@ -286,7 +288,7 @@ }

effSnd,
size: primitive_1.UInt16.size *
(8 +
effFst.glyphs * (class_def_1.MaxClsDefItemWords + coverage_1.MaxCovItemWords) + // 1 cov + 1 cls
effSnd.glyphs * class_def_1.MaxClsDefItemWords) + // 1 class def
dataSize // Actual Data
size: primitive_1.UInt16.size
* (8
+ effFst.glyphs * (class_def_1.MaxClsDefItemWords + coverage_1.MaxCovItemWords) // 1 cov + 1 cls
+ effSnd.glyphs * class_def_1.MaxClsDefItemWords) // 1 class def
+ dataSize // Actual Data
};

@@ -332,4 +334,4 @@ }

function isHighlyUneven(upperHalfClassCount, lowerHalfClassCount) {
return (upperHalfClassCount * UnevenMultiplier < upperHalfClassCount + lowerHalfClassCount ||
lowerHalfClassCount * UnevenMultiplier < upperHalfClassCount + lowerHalfClassCount);
return (upperHalfClassCount * UnevenMultiplier < upperHalfClassCount + lowerHalfClassCount
|| lowerHalfClassCount * UnevenMultiplier < upperHalfClassCount + lowerHalfClassCount);
}

@@ -336,0 +338,0 @@ function bisect(cm, allowUneven) {

@@ -1,3 +0,3 @@

import { Gpos } from "@ot-builder/ot-layout";
import { ClassMatrix } from "./class-matrix";
import type { Gpos } from "@ot-builder/ot-layout";
import type { ClassMatrix } from "./class-matrix";
export declare class OutlierTree<G> {

@@ -4,0 +4,0 @@ mapping: Map<G, Map<G, Gpos.AdjustmentPair>>;

@@ -27,4 +27,4 @@ "use strict";

measure() {
let s = primitive_1.UInt16.size *
(5 + this.mapping.size * (2 /* ptr + pair value count */ + coverage_1.MaxCovItemWords));
let s = primitive_1.UInt16.size
* (5 + this.mapping.size * (2 /* ptr + pair value count */ + coverage_1.MaxCovItemWords));
let format1 = 0;

@@ -43,5 +43,5 @@ let format2 = 0;

s +=
primitive_1.UInt16.size +
gpos_adjust_1.GposAdjustment.measure(entryAdj[0], format1) +
gpos_adjust_1.GposAdjustment.measure(entryAdj[1], format2);
primitive_1.UInt16.size
+ gpos_adjust_1.GposAdjustment.measure(entryAdj[0], format1)
+ gpos_adjust_1.GposAdjustment.measure(entryAdj[1], format2);
}

@@ -48,0 +48,0 @@ }

@@ -1,8 +0,8 @@

import { OtGlyph } from "@ot-builder/ot-glyphs";
import { OtFontLayoutData } from "@ot-builder/ot-layout";
import { OtFontMetadata } from "@ot-builder/ot-metadata";
import { Sfnt } from "@ot-builder/ot-sfnt";
import { Data } from "@ot-builder/prelude";
import { LayoutCfg } from "../cfg";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { type OtFontLayoutData } from "@ot-builder/ot-layout";
import type { OtFontMetadata } from "@ot-builder/ot-metadata";
import type { Sfnt } from "@ot-builder/ot-sfnt";
import type { Data } from "@ot-builder/prelude";
import type { LayoutCfg } from "../cfg";
export declare function readOtl(sfnt: Sfnt, cfg: LayoutCfg, gOrd: Data.Order<OtGlyph>, md: OtFontMetadata): OtFontLayoutData;
//# sourceMappingURL=read.d.ts.map

@@ -1,8 +0,8 @@

import { SfntIoTableSink } from "@ot-builder/io-bin-sfnt";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { OtFontLayoutData } from "@ot-builder/ot-layout";
import { OtFontMetadata } from "@ot-builder/ot-metadata";
import { Data } from "@ot-builder/prelude";
import { LayoutCfg } from "../cfg";
import type { SfntIoTableSink } from "@ot-builder/io-bin-sfnt";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { type OtFontLayoutData } from "@ot-builder/ot-layout";
import type { OtFontMetadata } from "@ot-builder/ot-metadata";
import type { Data } from "@ot-builder/prelude";
import type { LayoutCfg } from "../cfg";
export declare function writeOtl(outSink: SfntIoTableSink, otl: OtFontLayoutData, cfg: LayoutCfg, gOrd: Data.Order<OtGlyph>, md: OtFontMetadata): void;
//# sourceMappingURL=write.d.ts.map

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Math as OtMath } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { Data } from "@ot-builder/prelude";
export declare const MathGlyphConstruction: {

@@ -6,0 +6,0 @@ read(bv: BinaryView, gOrd: Data.Order<OtGlyph>): OtMath.GlyphConstruction;

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Math as OtMath } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { Data } from "@ot-builder/prelude";
export declare const MathGlyphInfo: {

@@ -6,0 +6,0 @@ read(bv: BinaryView, gOrd: Data.Order<OtGlyph>): OtMath.GlyphInfo;

@@ -1,4 +0,4 @@

import { BinaryView, Frag, Read, Write } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Data } from "@ot-builder/prelude";
import type { BinaryView, Frag, Read, Write } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import type { Data } from "@ot-builder/prelude";
export declare class GlyphValueMapIo<T> {

@@ -5,0 +5,0 @@ private readonly ioProc;

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Math as OtMath } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { Data } from "@ot-builder/prelude";
export declare const MathTableIo: {

@@ -6,0 +6,0 @@ read(bv: BinaryView, gOrd: Data.Order<OtGlyph>): OtMath.Table;

@@ -1,2 +0,2 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import { Math as OtMath } from "@ot-builder/ot-layout";

@@ -3,0 +3,0 @@ export declare const MathKernInfo: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MathKernInfo = void 0;
const tslib_1 = require("tslib");
const bin_composite_types_1 = require("@ot-builder/bin-composite-types");
const ImpLib = require("@ot-builder/common-impl");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const ot_layout_1 = require("@ot-builder/ot-layout");

@@ -7,0 +8,0 @@ const math_value_record_1 = require("../shared/math-value-record");

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import { Math as OtMath } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import type { Data } from "@ot-builder/prelude";
export declare const MathVariants: {

@@ -6,0 +6,0 @@ read(bv: BinaryView, gOrd: Data.Order<OtGlyph>): OtMath.Variants;

@@ -1,5 +0,5 @@

import { BinaryView, Frag, Read, Write } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { LayoutCommon } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { type BinaryView, Frag, Read, Write } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import type { LayoutCommon } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
export declare const MaxClsDefItemWords = 3;

@@ -6,0 +6,0 @@ export declare namespace ClassDefUtil {

@@ -1,4 +0,4 @@

import { BinaryView, Frag, Read, Write } from "@ot-builder/bin-util";
import { OtGlyph } from "@ot-builder/ot-glyphs";
import { Data } from "@ot-builder/prelude";
import { type BinaryView, Frag, Read, Write } from "@ot-builder/bin-util";
import type { OtGlyph } from "@ot-builder/ot-glyphs";
import type { Data } from "@ot-builder/prelude";
export type CovAuxMappingT<T> = Array<[number, T]>;

@@ -5,0 +5,0 @@ export type CovSplitLists<T> = {

@@ -202,4 +202,4 @@ "use strict";

this.start(gid, item);
else if (gid !== this.last.endGlyphID + 1 ||
item !== this.last.startCoverageIndex + (gid - this.last.startGlyphID)) {
else if (gid !== this.last.endGlyphID + 1
|| item !== this.last.startCoverageIndex + (gid - this.last.startGlyphID)) {
if (gid <= this.last.endGlyphID)

@@ -206,0 +206,0 @@ throw errors_1.Errors.Unreachable();

import { Read, Write } from "@ot-builder/bin-util";
import { LayoutCommon } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import { OtVar } from "@ot-builder/variance";
import type { LayoutCommon } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { OtVar } from "@ot-builder/variance";
export declare const DeviceDeltaBits: {

@@ -7,0 +7,0 @@ write(target: import("@ot-builder/bin-util").Frag, t: readonly number[], ppemMin: number, ppemMax: number, deltaFormat: number): void;

@@ -11,3 +11,2 @@ "use strict";

DeltaFormat[DeltaFormat["LOCAL_8_BIT_DELTAS"] = 3] = "LOCAL_8_BIT_DELTAS";
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
DeltaFormat[DeltaFormat["FORMAT_MASK"] = 3] = "FORMAT_MASK";

@@ -14,0 +13,0 @@ DeltaFormat[DeltaFormat["VARIATION_INDEX"] = 32768] = "VARIATION_INDEX";

@@ -1,6 +0,6 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import * as ImpLib from "@ot-builder/common-impl";
import { Gpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { Gpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import { OtVar } from "@ot-builder/variance";

@@ -7,0 +7,0 @@ export declare enum GposAdjustmentFormat {

@@ -5,4 +5,5 @@ "use strict";

exports.hashVarVal = hashVarVal;
const Crypto = require("crypto");
const ImpLib = require("@ot-builder/common-impl");
const tslib_1 = require("tslib");
const Crypto = tslib_1.__importStar(require("node:crypto"));
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const primitive_1 = require("@ot-builder/primitive");

@@ -9,0 +10,0 @@ const variance_1 = require("@ot-builder/variance");

@@ -1,5 +0,5 @@

import { BinaryView, Frag } from "@ot-builder/bin-util";
import { Gpos } from "@ot-builder/ot-layout";
import { Data } from "@ot-builder/prelude";
import { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
import type { BinaryView, Frag } from "@ot-builder/bin-util";
import type { Gpos } from "@ot-builder/ot-layout";
import type { Data } from "@ot-builder/prelude";
import type { ReadTimeIVS, WriteTimeIVS } from "@ot-builder/var-store";
export declare const GposAnchor: {

@@ -6,0 +6,0 @@ read(bp: BinaryView, ivs: Data.Maybe<ReadTimeIVS>): Gpos.Anchor;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ptr16GposAnchor = exports.NullablePtr16GposAnchor = exports.GposAnchor = void 0;
const Crypto = require("crypto");
const tslib_1 = require("tslib");
const Crypto = tslib_1.__importStar(require("node:crypto"));
const bin_composite_types_1 = require("@ot-builder/bin-composite-types");
const ImpLib = require("@ot-builder/common-impl");
const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl"));
const errors_1 = require("@ot-builder/errors");

@@ -80,6 +81,6 @@ const primitive_1 = require("@ot-builder/primitive");

else {
return (staticSize +
primitive_1.UInt16.size * 8 +
(a.xDevice ? a.xDevice.length : 0) +
(a.yDevice ? a.yDevice.length : 0));
return (staticSize
+ primitive_1.UInt16.size * 8
+ (a.xDevice ? a.xDevice.length : 0)
+ (a.yDevice ? a.yDevice.length : 0));
}

@@ -86,0 +87,0 @@ },

@@ -1,2 +0,2 @@

import { Math as OtMath } from "@ot-builder/ot-layout";
import type { Math as OtMath } from "@ot-builder/ot-layout";
export declare const MathValueRecord: {

@@ -3,0 +3,0 @@ write(target: import("@ot-builder/bin-util").Frag, t: OtMath.ValueRecord): void;

@@ -1,3 +0,3 @@

import { Os2 } from "@ot-builder/ot-metadata";
import { OtlStat } from "./interface";
import type { Os2 } from "@ot-builder/ot-metadata";
import type { OtlStat } from "./interface";
export declare class Os2MaxContextStat implements OtlStat {

@@ -4,0 +4,0 @@ private os2;

{
"name": "@ot-builder/io-bin-layout",
"version": "1.7.9",
"version": "1.8.0",
"license": "MIT",

@@ -26,23 +26,23 @@ "repository": {

"dependencies": {
"@ot-builder/bin-composite-types": "1.7.8",
"@ot-builder/bin-util": "1.7.8",
"@ot-builder/errors": "1.7.7",
"@ot-builder/ot-glyphs": "1.7.8",
"@ot-builder/ot-layout": "1.7.8",
"@ot-builder/ot-metadata": "1.7.8",
"@ot-builder/prelude": "1.7.7",
"@ot-builder/primitive": "1.7.8",
"@ot-builder/var-store": "1.7.8",
"@ot-builder/variance": "1.7.8",
"@ot-builder/common-impl": "1.7.7",
"@ot-builder/ot-sfnt": "1.7.8",
"@ot-builder/io-bin-sfnt": "1.7.8",
"@ot-builder/bin-composite-types": "1.8.0",
"@ot-builder/bin-util": "1.8.0",
"@ot-builder/errors": "1.8.0",
"@ot-builder/ot-glyphs": "1.8.0",
"@ot-builder/ot-layout": "1.8.0",
"@ot-builder/ot-metadata": "1.8.0",
"@ot-builder/prelude": "1.8.0",
"@ot-builder/primitive": "1.8.0",
"@ot-builder/var-store": "1.8.0",
"@ot-builder/variance": "1.8.0",
"@ot-builder/common-impl": "1.8.0",
"@ot-builder/ot-sfnt": "1.8.0",
"@ot-builder/io-bin-sfnt": "1.8.0",
"tslib": "^2.8.1"
},
"devDependencies": {
"@ot-builder/io-bin-glyph-store": "1.8.0",
"@ot-builder/io-bin-metadata": "1.7.8",
"@ot-builder/ot-encoding": "1.7.8",
"@ot-builder/io-bin-encoding": "1.7.9",
"@ot-builder/test-util": "1.7.8",
"@ot-builder/io-bin-glyph-store": "1.9.0",
"@ot-builder/io-bin-metadata": "1.8.0",
"@ot-builder/ot-encoding": "1.8.0",
"@ot-builder/io-bin-encoding": "1.8.0",
"@ot-builder/test-util": "1.8.0",
"@types/jest": "^30.0.0",

@@ -49,0 +49,0 @@ "jest": "^30.2.0"