johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.26k stars 256 forks source link

In non-default themes, Text are not fully rendered (bottom part missing) #1255

Open BakaJzon opened 4 months ago

BakaJzon commented 4 months ago

Describe the bug Poor English, see screenshot below.

To Reproduce Steps to reproduce the behavior:

  1. Using any non-default color
  2. Open a Chinese book (actually, only specific books)

Expected behavior Chinese fonts should render correctly in other themes (same as in the default theme) Like the second screenshot below.

Screenshots Nord Color (And any other color) 图片

Default Color 图片

Version:

Additional context Hi-DPI 150% scaling Font: Noto Sans/Serif CJK SC (both have rendering issues) Line Height: 1.5 Specific book: 《幻象》(The Image: A Guide to Pseudo-Events in America) [美] 丹尼尔·J. 布尔斯廷 Daniel J. Boorstin, 南海出版公司, 2023-06, ISBN 978-7-5735-0256-8 EPUB File MD5: b734772ac095f73ced6426a0ac958296/6363910bd5dc152a48bdb44456e72986 (tested two)

Override Publisher Font has no effect on this bug.

johnfactotum commented 4 months ago

It's not specific to any language or font. This is caused by 29eed7e6dbd114cc095aee3efe93ece24a4a399c. See https://stackoverflow.com/q/13117993.

A solution would be to force the background to be transparent, but see https://github.com/readium/readium-css/issues/68 for a case where the background is expected to be opaque.