Interface for loading fonts when opening a document.
Applications should implement this interface to provide font loading functionality when opening drawing databases that contain text entities.
Gets all available fonts.
Promise that resolves to an array of available font information
const fonts = await fontLoader.getAvaiableFonts();console.log('Available fonts:', fonts); Copy
const fonts = await fontLoader.getAvaiableFonts();console.log('Available fonts:', fonts);
Loads the specified fonts.
Array of font names to load
Promise that resolves when fonts are loaded
const fontLoader: AcDbFontLoader = { async load(fontNames: string[]) { // Load fonts implementation }, async getAvaiableFonts() { return []; }}; Copy
const fontLoader: AcDbFontLoader = { async load(fontNames: string[]) { // Load fonts implementation }, async getAvaiableFonts() { return []; }};
Interface for loading fonts when opening a document.
Applications should implement this interface to provide font loading functionality when opening drawing databases that contain text entities.