Bug 465009 - [Feature request] Option to enforce a font for ePUBs despite their own ones
Summary: [Feature request] Option to enforce a font for ePUBs despite their own ones
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: EPub backend (show other bugs)
Version: 22.12.1
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-29 21:19 UTC by davidkacerek
Modified: 2023-01-29 23:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
openSUSE Leap 15.4 Reference Guide (3.88 MB, application/epub+zip)
2023-01-29 23:06 UTC, davidkacerek
Details
Pro Git (71 bytes, text/plain)
2023-01-29 23:13 UTC, davidkacerek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davidkacerek 2023-01-29 21:19:58 UTC
SUMMARY:
The current state of the ePUB backend is to allow for a custom font in the "Configure Backends" window. This however, I've found only works for ePUBs w/o their own embedded fonts and the CSS style declaring the @font-face statement. In such case, my custom font configured in Okular is ignored and the displayed text looks usually worse that e.g. a carefully picked font from the Google Fonts catalog. I'd like the option to enforce my own font despite the ePUB's own embedded & declared one.

STEPS TO REPRODUCE
1. Okular -> Settings -> Configure Backends... -> EPub -> Default Font
2. Open an ePUB w/ its own fonts embedded & declared. You can check it by unpacking the file w/ the 7-Zip archiver for example.
3. Check the difference of the displayed text when switching the default font.

OBSERVED RESULT:
Ugly looking font rendering. No change.

EXPECTED RESULT:
Well rendered font of one's own choosing.

SOFTWARE/OS VERSIONS:
Windows: Windows 10 x64

ADDITIONAL INFORMATION:
Tested on Windows but I suppose it behaves the same on other platform like GNU/Linux where I'd like to see the feature as well.

Thank you.
Comment 1 davidkacerek 2023-01-29 23:06:42 UTC
Created attachment 155773 [details]
openSUSE Leap 15.4 Reference Guide

No fonts embedded or declared. Default font configured in the Okular ePUB backend is honored.
Comment 2 davidkacerek 2023-01-29 23:08:08 UTC
Comment on attachment 155773 [details]
openSUSE Leap 15.4 Reference Guide

No fonts embedded or declared. Default font configured in the Okular ePUB backend is honored.
Comment 3 davidkacerek 2023-01-29 23:13:35 UTC
Created attachment 155774 [details]
Pro Git

Fonts embedded and declared. Default font configured in the Okular ePUB backend is ignored.