Skip to content

Overriding the paragraph font size #376

Closed Answered by mickael-menu
smoores-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Oh yes, I forgot to mention the readium-advanced-on flag. This can help, as well as the text normalization.

UserSettings is deprecated but kept for backward compatibility. What you want is EPUBDefaults, you can initialize the EPUBNavigatorViewController with:

EPUBNavigatorViewController(
    config: EPUBNavigatorViewController.Configuration(
        defaults: EPUBDefaults(
            publisherStyles: false,
            textNormalization: true
        )
    )
)

If you want to let the user control whether or not the publisherStyles setting is disabled, you can use EPUBPreferences and EPUBNavigatorViewController.submitPreferences instead. EPUBDefaults are the fallback static setting values …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@smoores-dev
Comment options

@mickael-menu
Comment options

Answer selected by smoores-dev
@smoores-dev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants