Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 03-11-2014, 09:41 PM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Testing a subset

Hi

I've found a commercial book which uses a subset of four Liberation Serif fonts. Calibre do not display them correctly, while it's OK for ADE 1.73, Azardi, Prince.

I downloaded from FontSquirrel a new set of Liberation Serif fonts, installed them on the EPUB and using the Editor made a subset out of them. Everything is now displayed OK but the question remains as to why Calibre choked on the original subset.

In the original EPUB, I also found some minor mistakes (you said commercial? ) like using as a font-family name LiberationSerif instead of the inside coded "Liberation Serif ", a wrong Mime-type in the content.opf file.

Question: Is there a way to analyze technically a subset as to learn what happened there? I extracted the original subsets from the EPUB and uploaded them here on MR. As you can see, two of the four fonts are nearly empty (in fact the book does not use Bold and BoldItalic fonts at all). Is this the reason?
Attached Files
File Type: zip Fonts.zip (42.7 KB, 283 views)

Last edited by roger64; 03-11-2014 at 10:03 PM.
roger64 is offline   Reply With Quote
Old 03-11-2014, 10:47 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I assume you mean the editor's preview panel did not display the font? As is noted in the preview panel when you start the editor, it will not display fonts if the name inside the font does not match the name in the @font-face rule exactly.

If you run check book, it will warn you of this problem and even allow you to auto-fix it.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-11-2014, 11:07 PM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by kovidgoyal View Post
I assume you mean the editor's preview panel did not display the font?
Thanks for your reply. I am sorry I was not clear: the Calibre viewer did not display properly the book using this original subsets (uploaded above). So, to try to understand:

1. - I used the Editor but it failed to repair anything even if I was warned about a "dummy" font.
2. - The only solution I found was to change totally the fonts and create new subsets.
roger64 is offline   Reply With Quote
Old 03-11-2014, 11:11 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Attach a complete example in that case, not just the fonts.
kovidgoyal is offline   Reply With Quote
Old 03-12-2014, 12:57 AM   #5
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
OK Here it is attached.

As it's a commercial ebook, I've just included two text html files from the original book. As far as Liberation Serif is concerned, ADE 1.73 gives a good display while the calibre viewer gives a faulty one.

I did not try to repair or touch anything else (fonts, stylesheets, whatever) with the Editor. The Editor reports about "dummy" fonts which seem to be the Bold and BoldItalic Liberation Serif fonts here included.
Attached Files
File Type: epub Fakir.epub (178.6 KB, 250 views)
roger64 is offline   Reply With Quote
Advert
Old 03-12-2014, 01:06 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As I said in my previous post, the font names in the font and in the font-face rules do not match. For example:

@font-face {
font-family: LiberationSerif;
font-style: normal;
font-weight: normal;
src: url(../Fonts/LiberationSerif-Regular.ttf);
}

Note the missing space between Liberation and Serif. And then there is the use of family name Dummy for other variants of Liberation Serif. That is what is causing the problem for the viewer. The viewer cannot handle multiple font face rules referring to the same actual font family with different family-names (and this is due to a limitation of Qt, which cannot be helped).

Either delete those two embedded fonts or fix the @fontface rules to use the font-family name "Dummy" which will make the file render fine in the viewer.
kovidgoyal is offline   Reply With Quote
Old 03-12-2014, 01:22 AM   #7
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thanks for your explanation.
roger64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FontShrinker - tool to subset a font Toxaris Workshop 91 02-08-2018 06:54 PM
Calibredb export: can I do a subset of books (based on a query)? spedinfargo Calibre 6 02-25-2014 03:18 PM
Working on way to subset fonts for ePub/KF3 Freeshadow Workshop 51 04-22-2013 04:18 PM
Embedded font-subset sometimes fails GrannyGrump Sigil 3 10-20-2012 09:47 AM
group an ARBITRARY subset of records RotAnal Library Management 6 10-09-2012 11:53 AM


All times are GMT -4. The time now is 11:08 AM.


MobileRead.com is a privately owned, operated and funded community.