CssFontFacesImporter

class CssFontFacesImporter(families: List<FontFamily>, mediaStorage: ReadOnlyMediaStorage)

Generator of @font-face and @import CSS rules for a list of FontFamily, to be used in HTML post-rendering. It supports system, local, and remote media sources.

Parameters

families

the list of FontFamily to generate CSS rules for

mediaStorage

the media storage to resolve media paths against. In case the storage contains the media, the stored media will be referenced rather than the original resource.

Constructors

Link copied to clipboard
constructor(families: List<FontFamily>, mediaStorage: ReadOnlyMediaStorage)

Functions

Link copied to clipboard