@itwin/core-backend
Version:
iTwin.js backend components
33 lines • 1.58 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
*/
import { _faceProps, _getData, _implementationProhibited, _key } from "./internal/Symbols";
import { rscFontFileFromBlob, shxFontFileFromBlob, trueTypeFontFileFromFileName } from "./internal/FontFileImpl";
/** @beta */
export 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 trueTypeFontFileFromFileName(fileName);
}
FontFile.createFromTrueTypeFileName = createFromTrueTypeFileName;
/** Create a FontFile from the binary representation of a [FontType.SHX]($common) font face. */
function createFromShxFontBlob(args) {
return shxFontFileFromBlob(args);
}
FontFile.createFromShxFontBlob = createFromShxFontBlob;
/** Create a FontFile from the binary representation of a [FontType.RSC]($common) font face.
* @alpha
*/
function createFromRscFontBlob(args) {
return rscFontFileFromBlob(args);
}
FontFile.createFromRscFontBlob = createFromRscFontBlob;
})(FontFile || (FontFile = {}));
//# sourceMappingURL=FontFile.js.map