PublicationStyleFontFace

data class PublicationStyleFontFace(val family: String, val fontStretch: String? = null, val fontStyle: String? = null, val fontWeight: String? = null, val mediaType: MediaType, val src: String? = null, val srcUrl: String? = null)

Constructors

Link copied to clipboard
constructor(family: String, fontStretch: String? = null, fontStyle: String? = null, fontWeight: String? = null, mediaType: MediaType, src: String? = null, srcUrl: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The font family name for this font face. Cannot be any of the reserved words:

Link copied to clipboard
val fontStretch: String? = null

Sets the value to use for font-stretch for the corresponding @font-face rule. See: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-stretch

Link copied to clipboard
val fontStyle: String? = null

Sets the value to use for font-style for the corresponding @font-face rule. See: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-style

Link copied to clipboard
val fontWeight: String? = null

Sets the value to use for font-weight for the corresponding @font-face rule. See: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-weight

Link copied to clipboard

The media type of the font.

Link copied to clipboard
val src: String? = null

The font source data as a base64 string. To ensure compatibility, it is recommended to use a .woff, .otf or .ttf font. When using .otf or .ttf font, the font will only work on IE if the font is set to "installable"

Link copied to clipboard
val srcUrl: String? = null

The URL to the font resource. To ensure compatibility, it is recommended to use a .woff, .otf or .ttf font. To be able to load fonts by URL, you must also allow remote resources by configuring EpubReaderPublicationOptions.remoteResourcesNonScriptedDocumentsOptions.

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)