05-12-2011, 08:45 PM | #1 |
Enthusiast
Posts: 26
Karma: 1110
Join Date: Apr 2011
Device: Nook Color
|
Why can't I add fonts to my book?
I have been trying to convert an fb2 format book, with its Cyrillic fonts, into an ePub version that the Nook Color will read and understand. To do this I first converted the book from fb2 format to ePub format using Calibre and then tried to embed the fonts in the book by using Sigil.
But when I opened the book and then added the fonts to the Font folder (right-click, add existing, browse, select) a subsequent Validation gave me the following error: This resource is present in the OPF <manifest>, but it's not reachable (it's unused). I cannot get past this because without Sigil understanding fonts I cannot embed them in the file. I have tried to find out something about this in the help file, but come up empty. Can anyone tell me what this error means and how to get past it? Please? Thanks. |
05-13-2011, 12:06 AM | #2 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
read the thread about embedding fonts!
specifically, read & understand: put the @font-face declaration statement into the CSS |
Advert | |
|
05-13-2011, 02:28 AM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Adding the font to an ePub is not enough. You have to specify when and how it is used. Otherwise it is just taking up space. Hence the error message 'used, but not referenced'.
There are various threads about this around the forum. Please keep in mind, that when you make the correct reference in the stylesheet, you must also tell the XHTML files to use that stylesheet... |
05-13-2011, 08:05 AM | #4 | |||
Enthusiast
Posts: 26
Karma: 1110
Join Date: Apr 2011
Device: Nook Color
|
I tried to be brief in my post and it appears to have only generated confusion.
Quote:
I would be happy to add the resulting style sheet code to this thread if you think it would make any difference, but no matter what changes I made I continued to get the "cannot reach" error. Quote:
Quote:
|
|||
05-13-2011, 08:20 AM | #5 |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Beware of Case sensitivity errors
src:url(../fonts/vivaldii.TTF) format(opentype); is not the same path as .src:url(../Fonts/Vivaldii.TTF) format(opentype); |
Advert | |
|
05-13-2011, 08:43 AM | #6 |
Enthusiast
Posts: 26
Karma: 1110
Join Date: Apr 2011
Device: Nook Color
|
Yes, I suspected as much and made sure that the paths were the correct case. But thank you for the post anyway.
|
05-13-2011, 09:12 AM | #7 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
|
05-13-2011, 09:22 AM | #8 |
Enthusiast
Posts: 26
Karma: 1110
Join Date: Apr 2011
Device: Nook Color
|
Thanks for the post. Case sensitivity is not what turned out to be the issue. Spacing is.
The following did not work: src: url (../Fonts/LiberationSerif-Italic.ttf); The following did work: src: url(../Fonts/LiberationSerif-Italic.ttf); The single space after the url entry was what was causing all of the problems. When that was fixed the "cannot reach" error disappeared. Apparently the Sigil parsing is very strict. Go figure! |
05-13-2011, 09:24 AM | #9 | |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
05-13-2011, 01:09 PM | #10 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
|
05-13-2011, 01:31 PM | #11 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
when I last posted( about embedding fonts) I quoted from a thread with embedding fonts in the subject field about 3 threads down from this one, not exactly hard to find!
it is still on page 1 of current threads! https://www.mobileread.com/forums/showthread.php?t=77430 Last edited by cybmole; 05-13-2011 at 01:33 PM. |
05-13-2011, 02:05 PM | #12 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fontencrypt.py - Add Adobe encryption to fonts in ePub | pdurrant | ePub | 14 | 10-15-2013 09:16 AM |
add book to desktop? | zeroh | Nook Color & Nook Tablet | 2 | 12-05-2010 09:40 PM |
PRS-350: Add Cyrillic fonts, lose warranty? | Prosto_IA | Sony Reader | 15 | 11-25-2010 08:26 AM |
how to SAFELY add fonts ? | etherspin | Bookeen | 3 | 03-16-2009 11:01 AM |
not able to add fonts | julia | Bookeen | 9 | 09-27-2008 09:42 AM |