Thread: Embedding fonts
View Single Post
Old 01-02-2010, 05:50 AM   #6
erik5000
Member
erik5000 began at the beginning.
 
Posts: 15
Karma: 12
Join Date: Nov 2009
Device: sony prs600
Not fonts: they just have to be zipped into the epub, in the exact place where you say they must be (youe "say" that in the content.opf file AND in the .CSS file of course), eg. in a .\font folder.
Only the container.xml has a pre-defined place AND name: .\META-INF\container.xml.

As it is a real nuisance to have to tell the reader IN TWO PLACES, where a file must be found, I am currently building a little program to automatically make an epub FROM JUST THE HTML AND CSS files. Nothing more, nothing less. If you make valid XHTML "pages" and adhere to some easy extra rules when writing the XHTML, you need not be concerned with difficulties like building an .opf or .ncx or even an TableOfContents.html file yourself. The idea behind the program will be: if you can write XHTML and CSS, you get an epub for free.
I have Perl and ANT scripts that do just this, but i want to make a Windows program. That may be even easier to install. To get Perl, ANT and the XHTML/XML/CSS validation programs working is a little bit cumbersome for some.
If there is any interest in the two scripts, I may publish them on my site.
erik5000 is offline   Reply With Quote