readium / readium-css

🌈 A set of reference stylesheets for EPUB Reading Systems, starting with Readium Mobile
https://readium.org/readium-css/
BSD 3-Clause "New" or "Revised" License
89 stars 20 forks source link

Fixed-layout font-size affected by Android device settings #115

Closed mickael-menu closed 1 year ago

mickael-menu commented 2 years ago

I'm not sure this is directly related to Readium CSS, but I'm opening this discussion as it might be relevant.

An implementer submitted a bug report on the Kotlin toolkit where changing the font size in the Android system setting impacted the layout of an FXL EPUB, e.g.

I could reproduce this issue with BellaOriginal.epub as well, even though it uses absolute px font units.

Do you know of anything that could be done to prevent this, maybe by injecting some CSS? It could make sense to have a dedicated Readium CSS stylesheet for FXL if that's the case, as I expect the problem occurs on other platforms as well.

mickael-menu commented 1 year ago

I found a workaround using a native Kotlin setting: https://github.com/readium/kotlin-toolkit/pull/277