This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,16 @@
import type { FontCSSStyleOptions } from './loadFontCSS';
export declare const FontStylePromiseCache: Map<string, Promise<string>>;
/**
* takes the font families and returns a css string that can be injected into a style tag
* It will contain the font families and the font urls encoded as base64
* @param fontFamilies - The font families to load
* @param style - The FontCSSStyleOptions to load the font with (used for the first font family)
* @param defaultOptions - The default options to load the font with (used for the rest of the font families)
* @param defaultOptions.fontWeight - The default font weight
* @param defaultOptions.fontStyle - The default font style
* @returns - The css string
*/
export declare function getFontCss(fontFamilies: string[], style: FontCSSStyleOptions, defaultOptions: {
fontWeight: string;
fontStyle: string;
}): Promise<string>;