Package-level declarations

Types

Link copied to clipboard
data class FontFaceDeclaration(val fontFamily: String, val sources: ImmutableList<FontFaceSource>, val fontStyle: FontStyle? = null, val fontWeight: Either<FontWeight, ClosedRange<Int>>? = null)

An immutable font face declaration.

Link copied to clipboard
data class FontFaceSource(val href: Url, val preload: Boolean = false)

Represents an individual font file.

Link copied to clipboard
@Serializable
value class FontFamily(val name: String)

Typeface for a publication's text.

Link copied to clipboard
data class FontFamilyDeclaration(val fontFamily: String, val alternates: ImmutableList<String>, val fontFaces: ImmutableList<FontFaceDeclaration>)

A font family declaration.

Link copied to clipboard
data class FontFamilyDeclarations(val declarations: PersistentList<FontFamilyDeclaration>)
Link copied to clipboard

Styles that a font can be styled with.

Link copied to clipboard

Weight (or boldness) of a font.

Link copied to clipboard

A mutable font face declaration.

Link copied to clipboard

A mutable font family declaration.

Link copied to clipboard
class MutableFontFamilyDeclarations(declarations: PersistentList<FontFamilyDeclaration> = persistentListOf())
Link copied to clipboard
data class WebDecorationTemplate(val layout: WebDecorationTemplate.Layout, val width: WebDecorationTemplate.Width = Width.WRAP, val element: (Decoration.Style) -> String = { "<div/>" }, val stylesheet: String? = null)

A WebDecorationTemplate renders a Decoration into a set of HTML elements and associated stylesheet.

Link copied to clipboard
class WebDecorationTemplates(styles: ImmutableMap<KClass<*>, WebDecorationTemplate> = persistentMapOf())

Container for Web decoration templates.

Functions

Link copied to clipboard
fun Int.toCss(alpha: Double? = null): String

Converts the receiver color int to a CSS expression.