exportedFontsToCSS
exportedFontsToCSS(
fonts: ExportedFont[],
fontPathPrefix: string,
includeUncompressed: boolean,
): CSSOutputParameters
fonts: ExportedFont[]
Exported fonts.
fontPathPrefix: string
Path under which the fonts will be located--this will be prefixed to the
url(...)in thesrcproperty of each font. A trailing slash may be present or absent; both are handled correctly.includeUncompressed: boolean
Whether to include the uncompressed .ttf files in the CSS.
Returns
CSSOutputCSS output, that can be used as a list of typed tokens (for syntax highlighting) or as a string.
Takes a list of exported fonts and generates a stylesheet containing
@font-facedeclarations for them all.