android-components / mozilla.components.feature.readerview.view / ReaderViewControlsBar / setFontSize


fun setFontSize(size: Int): Unit (source)

Overrides ReaderViewControlsView.setFontSize

Sets the font size of the current and future ReaderView sessions.

Note: The readerview.js implementation under the hood scales the entire page’s contents and not just the text size.


size - An integer value in the range MIN_TEXT_SIZE to MAX_TEXT_SIZE.