Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Size Change #56

Open
Rohan-Rajesh opened this issue Jul 31, 2021 · 1 comment
Open

Font Size Change #56

Rohan-Rajesh opened this issue Jul 31, 2021 · 1 comment

Comments

@Rohan-Rajesh
Copy link

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

@saaiful
Copy link

saaiful commented Aug 31, 2021

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

I use it is this way, works withoyr issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants