View Single Post
Old 06-14-2009, 03:00 PM   #40
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by JSWolf View Post
Actually, when I embed the fonts into the ePub file itself, I don't have to change the OPF file at all. All I modify is the CSS and add the font directory at the same level as the CSS. It works fine. So no need to go messing with the .opf file at all to embed fonts. That just complicates matters.
That's a rather horrible way of doing it. It goes completely against the spec. If you're just doing it on your own books, go right ahead. But please don't upload non-conforming epubs to the forum's e-book section (I'm not saying you have done so previously).

There's a very good chance that such epubs will break on other devices. The whole point of the manifest section of the OPF is that one can parse it and get a list of all the files in the publication and not have to go through the entire directory tree.
Valloric is offline   Reply With Quote