@itwin/core-backend
Version:
iTwin.js backend components
36 lines • 1.66 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module ElementGeometry
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.FontFile = void 0;
const Symbols_1 = require("./internal/Symbols");
const FontFileImpl_1 = require("./internal/FontFileImpl");
/** @beta */
var FontFile;
(function (FontFile) {
/** Create a FontFile from a [FontType.TrueType]($common) file on disk.
* @param fileName The absolute path to the font file.
*/
function createFromTrueTypeFileName(fileName) {
return (0, FontFileImpl_1.trueTypeFontFileFromFileName)(fileName);
}
FontFile.createFromTrueTypeFileName = createFromTrueTypeFileName;
/** Create a FontFile from the binary representation of a [FontType.SHX]($common) font face. */
function createFromShxFontBlob(args) {
return (0, FontFileImpl_1.shxFontFileFromBlob)(args);
}
FontFile.createFromShxFontBlob = createFromShxFontBlob;
/** Create a FontFile from the binary representation of a [FontType.RSC]($common) font face.
* @alpha
*/
function createFromRscFontBlob(args) {
return (0, FontFileImpl_1.rscFontFileFromBlob)(args);
}
FontFile.createFromRscFontBlob = createFromRscFontBlob;
})(FontFile || (exports.FontFile = FontFile = {}));
//# sourceMappingURL=FontFile.js.map
;