readium/readium-js

readium.reader.setBookStyle(styles) dosen't update the current content displayed accordingly.

hz0324 opened this issue · 3 comments

I am using the setBookStyle() API to change the fontSize of the book, as following.

qq 20161116143433

The problem is, after running these code, no change happened on the content that are displayed on the screen, but if you change to another chapter using toc, the change become effective.

How to solve this problem?
Please help.
Thanks

PS: the default fontSize is 16.

Use this.readium.reader.updateSettings(val);, with val =

{
    fontSize: data,

    syntheticSpread: "auto",  // other values allowed, this is just an example
    columnGap: 60,  // other values allowed, this is just an example
    columnMaxWidth: 700,  // other values allowed, this is just an example
    scroll: "auto"  // other values allowed, this is just an example
}

Thank you very much