import { Options, Plugin } from '../utils/options.js'; import { TextConfig } from './border.js'; export interface FontFace extends Pick { /** * Base64 encoded font, e.g. `url(data:font/otf;base64,...)` */ src: string; } /** * Embed font faces into the generated SVG * * Use as the last plugin when using BorderPlugin({ text: { ... } }) * or other plugins that insert text. */ export default class FontFacesPlugin implements Plugin { private readonly fontFaces; constructor(fontFaces: Array); postProcess(svg: SVGSVGElement, options: Options): void; }