Quote:
Originally Posted by Nate the great
Would this be correct? I'm not quite certain what the id is for.
<item id="Tahoma" href="Tahoma_KOI8.ttf" media-type="application/x-truetype-font" />
|
That would be fine if Tahoma_KOI8.ttf sits at the same directory as the .opf file. The "id" is only a label you have to give to the file, as you have to do with every other file you include in the ePUB, images included. As far as I know the "id" is only really used in the <spine>, though.
In the .css files, you need the @font-face statement, and in the src property the url must be relative to where the .css sits. Like this:
Code:
@font-face {
font-family: "Dearest";
src: url("../fonts/Dearest.ttf") format("truetype");
}
The .css is in OEBPS/css, and the .ttf in OEBPS/fonts.
As examples, of my ePUBs, "The Prince and the Pauper", "Savage Stories of Conan", "Don Quijote" and "Novelas Ejemplares" use embedded fonts.