Publication Style Options
data class PublicationStyleOptions(val defaultFontFamily: PublicationStyleOptionsDefaultFontFamily = PublicationStyleOptionsDefaultFontFamily.SERIF, val fontSet: PublicationStyleFontSet? = null, val fontSizeScaleFactor: Double = 1.0, val lineHeightScaleFactor: Double = 1.0, val pageMargins: RectMargins? = null, val palette: PublicationStylePalette? = null, val textAlignment: PublicationStyleTextAlignmentOptions? = null)
Allows you to set styling options of the rendered publication.
Note that support depends on the publication format. Fixed-layout formats such as PDF and fixed-layout EPUB will by default NOT be affected by these options, with the exception of defaultFontFamily
(see defaultFontFamily
documentation). Some of these options can be enabled for fixed-layout EPUBs by setting IEpubReaderPublicationOptions.fixedLayoutStyleOptions
.
Constructors
Link copied to clipboard
fun PublicationStyleOptions(defaultFontFamily: PublicationStyleOptionsDefaultFontFamily = PublicationStyleOptionsDefaultFontFamily.SERIF, fontSet: PublicationStyleFontSet? = null, fontSizeScaleFactor: Double = 1.0, lineHeightScaleFactor: Double = 1.0, pageMargins: RectMargins? = null, palette: PublicationStylePalette? = null, textAlignment: PublicationStyleTextAlignmentOptions? = null)