![]() |
#1 | ||
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Problems with fonts
Hello,
I've validated my ePub with Flight Crew and get the following message: Quote:
The .mobi book works fine on a Kindle, but when trying to upload the ePub to Smashwords I get those error messages. Is there any way to fix this issue, e.g. by simply removing the lines of code that make reference to those fonts. An example would be this: Quote:
|
||
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
It is not listed in the (Fonts) file browser s being present BTW you may also need an @fonts statement in the CSS or file <head> block BTW2 Mobi does not support font embedding BTW3 the code you show has no Text, so why did you set a font face? |
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Big question is, if you want to embed the fonts. If you do, the actions will be different than if you don't. Also, I think InDesign can create an ePUB with a stylesheet instead of inline styles like the example you give. That will make work a lot, and I mean a lot, easier.
Presuming you do not want to embed fonts (as this would not work on mobi files anyway afak), you can just search for font-family: 'Futura Light'; and replace that by nothing. That would work in the example you give. |
![]() |
![]() |
![]() |
#4 |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Thank you for the advice Toxaris. That's just what I was wondering about.
I have no particular investment in that font for the ePub. The file was exported from InDesign because a print book was designed in InDesign, and that book uses those fonts. I'm not fussed about it either way. So if I just delete that particular piece of code, then the ePub would use a default font - is that correct? |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This line of code alone:
Code:
<span style="font-family: 'Futura Light'; font-weight: normal; font-size: 1em; line-height: 1.083;"><br /></span> The references you probably need to remove are the @font-face declarations in the CSS (in the head of the page or in an external stylesheet). Specifically: any "src: url(...);" statements that are pointing to non-existent font files. You've only included the error message from FlightCrew. The first column in the error will indicate the resource/file that doesn't exist (but is being referenced somewhere) in your epub. If that first column isn't a font file "OEBPS/Fonts/something.ttf/otf". Then your problem is something else. Last edited by DiapDealer; 01-31-2015 at 05:14 PM. |
![]() |
![]() |
![]() |
#6 | |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Aha. Thanks so much DiapDealer. That fixed that particular error.
However, I am still left with this: Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Code:
The <item> element's "media-type" attribute has value "application/vnd.ms-opentype", but the file's media type is "application/x-font-ttf". If the font files are truly not included in the epub, then you need to remove the <item /> entry for it in the manifest section of the OPF file (it would be removed automatically if the font files had been deleted from within Sigil). |
![]() |
![]() |
![]() |
#8 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
I follow the rule of thumb: the fewer design elements in an e-book, the more likely it is to work out to my satisfaction, and to work across all possible devices and apps.
|
![]() |
![]() |
![]() |
#9 |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Thank you all so much for your help - much appreciated!
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add alternate fonts without replacing system fonts.(this time this is a guide) | techiemonkey | Kindle Developer's Corner | 17 | 09-12-2012 04:55 PM |
An Observation on Fonts - Improving readability by using *bold* versions of fonts | nesler | General Discussions | 12 | 06-24-2012 12:33 PM |
Problems adding fonts on KT | VirgoGirl | Kobo Reader | 2 | 04-16-2012 12:12 PM |
need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 | hanpal | Kindle Developer's Corner | 1 | 02-20-2012 10:40 AM |
Touch Fonts question (special characters in stock and custom fonts) | levil | Kobo Reader | 20 | 09-23-2011 01:51 PM |