View Single Post
Old 07-26-2011, 12:41 AM   #15
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
Well, here are some font refs that validate:
Quote:
<item id="BNKGOTHM.TTF" href="Fonts/BNKGOTHM.TTF" media-type="application/x-font-truetype"/>
<item id="BRUSHSCI.TTF" href="Fonts/BRUSHSCI.TTF" media-type="application/x-font-truetype"/>
<item id="HANSON-H.TTF" href="Fonts/HANSON-H.TTF" media-type="application/x-font-truetype"/>
<item id="SCHWRZW.TTF" href="Fonts/SCHWRZW.TTF" media-type="application/x-font-truetype"/>
<item id="TrajanPro-Bold.otf" href="Fonts/TrajanPro-Bold.otf" media-type="application/x-font-opentype"/>
<item id="TrajanPro-Regular.otf" href="Fonts/TrajanPro-Regular.otf" media-type="application/x-font-opentype"/>
<item id="Vivaldii.TTF" href="Fonts/Vivaldii.TTF" media-type="application/x-font-truetype"/>
This is with the Fonts directory and the opf file both immediately inside the OEBPS directory.

And here is a font declaration in the stylesheet:
Quote:
@font-face {
font-family: "Vivaldi";
font-style: normal;
font-weight: normal;
src:url(../Fonts/Vivaldii.TTF) format(truetype);;
}
Note that the stylesheet is inside a directory within the OEBPS directory, so the url is relative to the current directory. I think that is correct, but I'll do more checking soon.

And here is a class reference for the font:
Quote:
{
font-family: "Vivaldi", cursive
}
Note the fallback to cursive if Vivaldi is unavailable.

I hope this helps.
pholy is offline   Reply With Quote