Quote:
Originally Posted by JSWolf
So how does one specify the fonts in the OPF file?
|
Reference them in the manifest element. Fot TrueType fonts, make the "item" element look something like this:
Code:
<item id="font1" href="fonts/font1.ttf" media-type="application/x-font-truetype" />
For OpenType fonts, this:
Code:
<item id="font2" href="fonts/font2.otf" media-type="application/x-font-opentype" />
The standards Gods have not specified font MIME types, but these follow the naming conventions and are probably the best you could use. And they work.
Of course, the "href" and "id" are up to you.