View Single Post
Old 03-01-2010, 06:29 PM   #1
b.tarde
Junior Member
b.tarde began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2010
Device: EPubReader
Another font embedding problem

This is driving me a little crazy. I've made an e-pub with embedded fonts, and it displays correctly in Calibre and ADE. I've read the thread from last December recommending testing by loading a page from the unzipped epub in FireFox: I've done that, and the font gets displayed correctly. The epub validates with epubcheck and the CSS validates as version 3 in the W3C validator. But the font does not get displayed in the FireFox EPubReader. So what can be going on? Here are the the @font-face declarations:

@font-face{font-family: JunWeb;
font-weight: normal;
font-style: normal;
src: url("JunWeb-Regular.ttf") format("truetype");}
@font-face{font-family: JunWeb;
font-weight: bold;
font-style: normal;
src: url("JunWeb-Bold.ttf") format("truetype");}
@font-face{font-family: JunWeb;
font-weight: normal;
font-style: italic;
src: url("JunWeb-Italic.ttf") format("truetype");}
@font-face{font-family: JunWeb;
font-weight: bold;
font-style: italic;
src: url("JunWeb-BoldItalic.ttf") format("truetype");}

And the invocation of the font:

body {font-family: JunWeb, serif;}

And in case anyone want to look at this in context, I've posted the whole epub here:

http://faculty.virginia.edu/OldEnglish/secret/oeg.epub

I'd hugely appreciate any advice here. EPubReader is a terrific add-on, and I'd like to get my files to work correctly with it!

Thanks,
Peter
b.tarde is offline   Reply With Quote