//readium-navigator/org.readium.r2.navigator.epub/EpubPreferences
EpubPreferences¶
[androidJvm]\ @Serializable
data class EpubPreferences(val backgroundColor: Color? = null, val columnCount: ColumnCount? = null, val fontFamily: FontFamily? = null, val fontSize: Double? = null, val fontWeight: Double? = null, val hyphens: Boolean? = null, val imageFilter: ImageFilter? = null, val language: Language? = null, val letterSpacing: Double? = null, val ligatures: Boolean? = null, val lineHeight: Double? = null, val pageMargins: Double? = null, val paragraphIndent: Double? = null, val paragraphSpacing: Double? = null, val publisherStyles: Boolean? = null, val readingProgression: ReadingProgression? = null, val scroll: Boolean? = null, val spread: Spread? = null, val textAlign: TextAlign? = null, val textColor: Color? = null, val textNormalization: Boolean? = null, val theme: Theme? = null, val typeScale: Double? = null, val verticalText: Boolean? = null, val wordSpacing: Double? = null) : Configurable.Preferences<EpubPreferences>
Preferences for the EPUB navigator.
Parameters¶
androidJvm
backgroundColor | Default page background color. |
columnCount | Number of reflowable columns to display (one-page view or two-page spread). |
fontFamily | Default typeface for the text. |
fontSize | Base text font size. |
fontWeight | Default boldness for the text. |
hyphens | Enable hyphenation. |
imageFilter | Filter applied to images in dark theme. |
language | Language of the publication content. |
letterSpacing | Space between letters. |
ligatures | Enable ligatures in Arabic. |
lineHeight | Leading line height. |
pageMargins | Factor applied to horizontal margins. |
paragraphIndent | Text indentation for paragraphs. |
paragraphSpacing | Vertical margins for paragraphs. |
publisherStyles | Indicates whether the original publisher styles should be observed. Many settings require this to be off. |
readingProgression | Direction of the reading progression across resources. |
scroll | Indicates if the overflow of resources should be handled using scrolling instead of synthetic pagination. |
spread | Indicates if the fixed-layout publication should be rendered with a synthetic spread (dual-page). |
textAlign | Page text alignment. |
textColor | Default page text color. |
textNormalization | Normalize text styles to increase accessibility. |
theme | Reader theme. |
typeScale | Scale applied to all element font sizes. |
verticalText | Indicates whether the text should be laid out vertically. This is used for example with CJK languages. This setting is automatically derived from the language if no preference is given. |
wordSpacing | Space between words. |
Constructors¶
EpubPreferences | [androidJvm] fun EpubPreferences(backgroundColor: Color? = null, columnCount: ColumnCount? = null, fontFamily: FontFamily? = null, fontSize: Double? = null, fontWeight: Double? = null, hyphens: Boolean? = null, imageFilter: ImageFilter? = null, language: Language? = null, letterSpacing: Double? = null, ligatures: Boolean? = null, lineHeight: Double? = null, pageMargins: Double? = null, paragraphIndent: Double? = null, paragraphSpacing: Double? = null, publisherStyles: Boolean? = null, readingProgression: ReadingProgression? = null, scroll: Boolean? = null, spread: Spread? = null, textAlign: TextAlign? = null, textColor: Color? = null, textNormalization: Boolean? = null, theme: Theme? = null, typeScale: Double? = null, verticalText: Boolean? = null, wordSpacing: Double? = null) |
Functions¶
Name | Summary |
---|---|
plus | [androidJvm] open operator override fun plus(other: EpubPreferences): EpubPreferences Creates a new instance of P after merging the values of other. |