Thread: Touch referencing fonts
View Single Post
Old 07-04-2012, 10: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: 38,528
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
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