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

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

Open
BakaJzon opened this issue Feb 21, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@BakaJzon
Copy link

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:

  • Foliate version: 3.1.0-2
  • OS/Distribution and version: Arch Linux
  • Desktop environment: KDE Plasma 5 (Wayland)
  • Installation method: pacman

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.

@BakaJzon BakaJzon added the bug Something isn't working label Feb 21, 2024
@johnfactotum
Copy link
Owner

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

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

@BakaJzon BakaJzon changed the title In non-default themes, Chinese fonts are not fully rendered (bottom part missing) In non-default themes, Text are not fully rendered (bottom part missing) Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants