View Single Post
Old 06-19-2009, 02:49 PM   #68
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
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.
Valloric is offline   Reply With Quote