import { FontStyle, FontWeight } from "@hylimo/diagram-common"; import type { FontFamily, SubsettedFont } from "./fontFamily.js"; /** * Collection of fonts */ export declare class FontCollection { /** * The font families by name */ readonly fontFamilies: Map; /** * Creates a new font collection */ constructor(); /** * Registers a font family in this collection. * * @param family the font family */ registerFont(family: FontFamily): void; /** * Gets a font from this collection. * If the font is not found, an error is thrown. * * @param family the font family * @param weight the font weight * @param style the font style * @returns the font */ getFont(family: string, weight: FontWeight, style: FontStyle): SubsettedFont; } //# sourceMappingURL=fontCollection.d.ts.map