kiha-la / ebookdroid

Automatically exported from code.google.com/p/ebookdroid
0 stars 0 forks source link

PDF Embedded font not displayed #660

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Open the attached PDF-file with embedded fonts (Georgia in my example);
2.
3.

What is the expected output?
The text should be shown in Georgia font, as it is by other readers.

What do you see instead?
Evidently another font, "sans serif". This is incorrect because Georgia is a 
"serif" font.

What version of the product are you using?
EBookDroid 2.0.8

On what operating system?
Android 4.2.2

What device are you using?
Tablet ASUS ME173X

Please provide any additional information below.

Original issue reported on code.google.com by philippe...@gmail.com on 9 Dec 2013 at 6:16

Attachments:

GoogleCodeExporter commented 9 years ago
According to pdffonts, your file does not have Georgia embedded:

pdffonts May\ \(Karl\)\ -\ Winnetou\,\ l\'homme\ de\ la\ prairie.pdf 
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
Georgia                              TrueType          no  no  no    9764  0
Georgia-Bold                         TrueType          no  no  no    9766  0
ODAGKG+Calibri                       TrueType          yes yes yes   1767  0
Georgia-Italic                       TrueType          no  no  no    1789  0
Georgia-BoldItalic                   TrueType          no  no  no    1813  0

Original comment by Andrei.K...@gmail.com on 10 Dec 2013 at 1:23

GoogleCodeExporter commented 9 years ago
Thank you for your answer and reactivity! Apologies: you are right, Georgia was 
not embedded (false interpretation by another pdf-tool I used). In this case, I 
guess that EBD uses a substitute font, no problem.
Nevertheless, Georgia is referenced in that file indeed (pdffonts says it too), 
and the problem arises from the substitution. Hence my question: is it possible 
to render the file with a font similar to Georgia (namely a SERIF font). Or in 
other words: is it possible to control the police used by EBD?
If yes, a suggestion for future versions: would it be possible to teach EBD so 
that it always uses a substitute font SIMILAR to the one referenced in the 
PDF-file?

Thanks again, and best regards.

Ph. Chouard

Original comment by philippe...@gmail.com on 10 Dec 2013 at 2:20

GoogleCodeExporter commented 9 years ago
OK. Right now I am fixing this bug by selecting correct type from base set: 
sans/serif, regular/bold/italic/BoldItalic.

In the future I think we can think about full featured font substitution.

Original comment by Andrei.K...@gmail.com on 10 Dec 2013 at 2:42