EpubSettings
Reader layout settings. All values in points. Change them at runtime with EpubDocument.withSettings (or the withFontSize/withPageSize/withMargin shorthands) to re-flow without re-parsing the book.
The typography overrides (font family, colors, justification, hyphenation) are applied as a reader-origin cascade layer that outranks author-important CSS: the user's explicit preference beats the publisher's stylesheet. All-default settings change nothing.
Constructors
Properties
Painted under everything on every page; null = no page background.
Force every run onto a generic family (null = publisher fonts).
How much laid-out text the book keeps in memory, as an estimate in bytes.
Multiplies every line's height (1.0 = as authored).
Fetches the resources that the book names by an absolute https URL instead of a file in its container (EPUB 3.3, 3.6, #38). kitepdf-net ships one on a Ktor client. Null fetches nothing: a remote image takes its manifest fallback, else keeps the room its markup gives, and a remote font takes the next source of its rule. See EpubDocument.fetchRemoteResources for when the bytes count.
Whether a reflowable chapter scrolls instead of being cut into pages: true lays each one out as a single page as wide as pageWidth and as tall as its content, false always cuts it into pages, and null follows the book's rendition:flow (EPUB 3.3, #505). A chapter in vertical writing is always cut into pages, and a pre-paginated chapter is always one page.
False drops the publisher's CSS (author rules + inline styles): UA + reader layers only.