Bug 251056

Summary: missing support for fonts embedded in the document
Product: [Applications] okular Reporter: Giovanni Venturi <giovanni>
Component: EPub backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: wishlist    
Priority: NOR    
Version: 0.5.81   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: the epub with embedded font

Description Giovanni Venturi 2010-09-13 11:25:26 UTC
Version:           0.5.81 (using KDE 4.5.1) 
OS:                Linux

I read that epub (like as ODT and so on for some document format) doesn't use the document font but a default font: http://okular.kde.org/formats.php
I'd like to see this feature implemented. The e-book era seems to be at the door, so I'd like to use Okular to read an ebook.
Thank you.
I don't know. If I can fix this issue, if it's simple I could try. Can you give me some hints? What has to be done? Where and what I have to look into the code?
It's an okular specific code? kdelibs? ebook-tools?
Let me know.

Reproducible: Always

Steps to Reproduce:
Open an EPub document.

Actual Results:  
Documents Font is ignored.

Expected Results:  
Okular has to use the document used from the document.

OS: Linux (i686) release 2.6.35.4
compiler: gcc
Comment 1 Albert Astals Cid 2010-09-13 19:54:49 UTC
If it was simple we would have done it.

This probably needs combined for in ebook-tools, Okular and Qt.
Comment 2 Pino Toscano 2010-10-05 01:31:19 UTC
(In reply to comment #0)
> I read that epub (like as ODT and so on for some document format) doesn't use
> the document font but a default font: http://okular.kde.org/formats.php

No, "document fonts" actually means "document fonts _information_", i.e. the ability to list the fonts used/embedded in a document.

> Actual Results:  
> Documents Font is ignored.

Please provide a non-private document showing the issue, and make sure to use ebook-tools 0.2.1.
Comment 3 Giovanni Venturi 2010-10-05 08:44:16 UTC
Created attachment 52227 [details]
the epub with embedded font

here a public epub with embedded font