Thread: Touch referencing fonts
View Single Post
Old 07-04-2012, 09:40 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 36,743
Karma: 17806730
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Danger View Post
it should be:

@font-face {
font-family: 'Tibetan Machine Uni';
font-weight: normal;
font-style: normal;
src: url(../Fonts/TibMachUni-1.901b.ttf);
}

Change font class:

p {
font-family: "Tibetan Machine Uni", serif, sans-serif;
}
The OP is talking of a fonts directory on the Kobo and not in the ePub. So your URL is still pointing to a non-existing place in the ePub to find the font files that aren't there.

For example, if I create a fonts directory on my 650, I can use a URL to reference these fonts outside of the ePub.

Code:
src: url(res:///Data/fonts/CharisSILR.ttf)
This probably won't work on a Kobo. But you can give it a try.
JSWolf is offline   Reply With Quote