FontSpec

data class FontSpec(val family: FontFamily, val bold: Boolean, val italic: Boolean, val name: String = "")

Platform-neutral descriptor for picking a substitute system font when a document font ships no embedded outlines (e.g. the PDF Standard-14, or a CSS font with no @font-face file). Render backends map family + bold + italic to a host typeface. No PDF (or other format) types cross the canvas seam, so every document handler (PDF, EPUB, ...) feeds the same FontSpec.

Constructors

Link copied to clipboard
constructor(family: FontFamily, bold: Boolean, italic: Boolean, name: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Original font name (e.g. "Helvetica-Bold"), for diagnostics only.