![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? ![]() 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? Last edited by roger64; 03-11-2014 at 10:03 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks for your explanation.
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |