"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LookupWriteTrick = void 0;
exports.createConfig = createConfig;
const tslib_1 = require("tslib");
const IoBinEncoding = tslib_1.__importStar(require("@ot-builder/io-bin-encoding"));
const IoBinExtPrivate = tslib_1.__importStar(require("@ot-builder/io-bin-ext-private"));
const IoBinGlyphStore = tslib_1.__importStar(require("@ot-builder/io-bin-glyph-store"));
const IoBinLayout = tslib_1.__importStar(require("@ot-builder/io-bin-layout"));
const IoBinMetadata = tslib_1.__importStar(require("@ot-builder/io-bin-metadata"));
const IoBinVttPrivate = tslib_1.__importStar(require("@ot-builder/io-bin-vtt-private"));
function createConfig(partial) {
    return {
        cff: { ...IoBinGlyphStore.DefaultCffCfgProps, ...partial.cff },
        ttf: { ...IoBinGlyphStore.DefaultTtfCfgProps, ...partial.ttf },
        fontMetadata: { ...IoBinMetadata.DefaultFontMetadataCfgProps, ...partial.fontMetadata },
        glyphStore: { ...IoBinGlyphStore.DefaultGlyphStoreCfgProps, ...partial.glyphStore },
        glyphNaming: { ...IoBinGlyphStore.DefaultGlyphNamingCfgProps, ...partial.glyphNaming },
        encoding: { ...IoBinEncoding.DefaultEncodingCfgProps, ...partial.encoding },
        layout: { ...IoBinLayout.DefaultLayoutProps, ...partial.layout },
        extPrivate: { ...IoBinExtPrivate.DefaultExtPrivateCfgProps, ...partial.extPrivate },
        vttPrivate: { ...IoBinVttPrivate.DefaultVttPrivateCfgProps, ...partial.vttPrivate },
        generateDummyDigitalSignature: !!partial.generateDummyDigitalSignature
    };
}
var io_bin_layout_1 = require("@ot-builder/io-bin-layout");
Object.defineProperty(exports, "LookupWriteTrick", { enumerable: true, get: function () { return io_bin_layout_1.LookupWriteTrick; } });
//# sourceMappingURL=config.js.map