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,13 @@
export interface FontCSSStyleOptions {
fontFamily: string | string[];
fontWeight: string;
fontStyle: string;
}
/**
* This will take a font url and a style and return a css string that can be injected into a style tag
* This will contain inlined base64 font and the font family information
* @param style - the style to generate the css for
* @param url - The url to load the font from
* @returns - The css string
*/
export declare function loadFontCSS(style: FontCSSStyleOptions, url: string): Promise<string>;