MermanFontOptions

Immutable font configuration for MermanRenderer text measurement.

Callers can supply all font files available in their runtime (such as JBR fonts) via fonts together with preferred family names for each CSS generic family (defaultFontFamily, sansSerifFontFamily, serifFontFamily, monospaceFontFamily, cursiveFontFamily, fantasyFontFamily). When a generic family is not explicitly configured on Builder, it defaults to defaultFontFamily.

Types

Link copied to clipboard
class Builder

Mutable builder for immutable MermanFontOptions.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

family used for cursive CSS generic family

Link copied to clipboard

fallback family used for generic CSS families when not overridden and for requested families that no supplied font provides, or null to use the primary family of the first supplied font

Link copied to clipboard

family used for fantasy CSS generic family

Link copied to clipboard

Returns defensive copies of the configured font files.

Link copied to clipboard

family used for monospace CSS generic family

Link copied to clipboard

family used for sans-serif CSS generic family

Link copied to clipboard

family used for serif CSS generic family