mobile
mobile copied to clipboard
[EPUB] Use native solution to change the font size instead of Readium CSS
Changing the font size with Readium CSS is limited because if the publication has absolute font sizes then enabling advanced options is necessary: basically disabling publisher's defaults.
A possible workaround would be to use native solutions when available since Readium CSS is platform-agnostic.
text-size-adjust
is promising and seems to be available on both iOS and Android: https://caniuse.com/?search=text-size-adjust
Related issue: https://github.com/readium/readium-css/issues/34
On Android, this could be an option:
- https://developer.android.com/reference/android/webkit/WebSettings#setTextZoom(int)
- https://stackoverflow.com/questions/29115332/change-textsize-in-android-webview/29115409#29115409
@mickael-menu do we have a solution for this issue? It breaks the font size change for a lot of books on Android.
Not yet, I don't see myself implementing it before tackling the Presentation Settings for EPUB. But if you want you can try out the techniques I put in the other comment and see if it helps: https://github.com/readium/mobile/issues/5#issuecomment-734408745
Yes I'm trying those techniques.