Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-20-2011, 03:02 AM   #1
affa
Connoisseur
affa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheese
 
Posts: 56
Karma: 1234
Join Date: Apr 2011
Device: kindle
how do I UN-font an epub?

I'm nearly finished my first epub and it's shaping up great, but I just did a validation on it and I'm getting
'This resource is reachable but not present...' errors for the fonts.

Now, I went from Indesign CS4 to EPUB, and I intentionally did NOT embed fonts and would like to rely on each readers generic fonts.

My question is simple -- I have a css that's referencing fonts that aren't embedded. What do I do to remedy this? (I don't know css, so I need a dumbed down yet technical answer).

I've found many great resources on how to embed fonts into an Epub... but haven't found a tutorial (yet) on how NOT to. Any help or pointers in the right direction would be appreciated.

Last edited by affa; 04-20-2011 at 03:05 AM.
affa is offline   Reply With Quote
Advert
Old 04-20-2011, 03:41 AM   #2
mrmls
Enthusiast
mrmls has learned how to buy an e-book online
 
mrmls's Avatar
 
Posts: 37
Karma: 99
Join Date: Mar 2011
Location: Europe
Device: Sony PRS 505, 600, 950
Just remove that CSS that defines embedded fonts.
If no CSS for fonts are defined, then device's default fonts are used.

It might vary from device to device, but if embedded fonts are not found, default will be used without any warning. So, you can actually leave that CSS, but, of course, better to remove for valid epub.
mrmls is offline   Reply With Quote
Old 04-20-2011, 08:08 AM   #3
affa
Connoisseur
affa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheese
 
Posts: 56
Karma: 1234
Join Date: Apr 2011
Device: kindle
Thank you for the prompt reply... so in the rare case someone has those specific fonts, it would render properly. Interesting. Don't think it's worth keeping them declared, though, since these fonts are relatively rare.

Now, sorry to be dense, I'm just not sure I understand what to delete yet.

Looking at the CSS, I see several declarations that look like:

@font-face {
font-family: "Century Schoolbook";
font-style: normal;
font-weight: normal;
src:local(CenturySchoolbook);
}

then, after that, there are what I recognize as my styles (from indesign), such as:

p.front-matter {
font-family: "Century Schoolbook";
line-height: 1.09em;
font-size: 0.92em;
margin-bottom: 0.00em;
margin-top: 0.00em;
text-indent: 0.00em;
margin-right: 0.00em;
margin-left: 0.00em;
text-align: left;
font-weight: normal;
font-style: normal;
color: rgb(0,0,0);
}

Should I be deleting everything? I'm guessing I still want my styles to have some impact, correct?

Would simply deleting the 'font' name in the style do the job? So, for this case:

p.front-matter {
DELETE JUST THIS LINE font-family: "Century Schoolbook";
line-height: 1.09em;
font-size: 0.92em;
margin-bottom: 0.00em;
margin-top: 0.00em;
text-indent: 0.00em;
margin-right: 0.00em;
margin-left: 0.00em;
text-align: left;
font-weight: normal;
font-style: normal;
color: rgb(0,0,0);
}

Should I be deleting/modifying the "font-face" section? If my spidey sense is on point, it looks like the font-face section is simply naming and specifying the font for future reference, so can be safely deleted since i'm deleting the references.

But then it would seem deleting the css wholesale would have unintended consequences (for example, my italics are based on styles). But exactly to delete? I'd think if I simply deleted the font line, then the rest of the style would impact the generic font (to some degree, based on reader)... but i'd love some confirmation that's the right way to go about it.
affa is offline   Reply With Quote
Old 04-20-2011, 09:03 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,065
Karma: 9175645
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
If you delete all @font-face rules, and all font-family references to them, it should be safe.
Jellby is offline   Reply With Quote
Old 04-20-2011, 12:50 PM   #5
affa
Connoisseur
affa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheeseaffa can extract oil from cheese
 
Posts: 56
Karma: 1234
Join Date: Apr 2011
Device: kindle
you rock, thank you. will give it a whirl today.
affa is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub to mobi - keep non proportional font ? cybmole Conversion 6 02-06-2011 09:14 AM
Font fail with Epub CSS gregcd Sony Reader 0 10-28-2010 03:45 PM
ePub Font Subsetting Cygfrydd ePub 2 08-17-2010 08:53 AM
PRS-600 Default EPUB font? jamadams Sony Reader 5 04-06-2010 11:07 PM
ePub with external font DairyKnight Sony Reader 34 02-22-2010 02:31 AM


All times are GMT -4. The time now is 11:01 PM.


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