epubjs-reader icon indicating copy to clipboard operation
epubjs-reader copied to clipboard

Font Size Change

Open Rohan-Rajesh opened this issue 4 years ago • 1 comments

Hi,

I want to implement buttons that increase and decrease font size, I looked through the docs and found the function that changes the font size i.e rendition.themes.fontSize('100px');

But after running this function, it only shows up when I resize my browser window and the reader refreshes, is there any workaround to this issue

Any help would be appreciated Thanks

Rohan-Rajesh avatar Jul 31 '21 05:07 Rohan-Rajesh

window.rendition =  window.reader.rendition;
window.rendition.themes.fontSize(size+ "%");

I use it is this way, works withoyr issue

saaiful avatar Aug 31 '21 09:08 saaiful