Quote:
Originally Posted by kaceyrohl
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/arial.ttf);
}
I can not use
|
Apart from declaring the
@font-face rules:
Code:
@font-face {
font-family: "Charis";
font-weight: normal;
font-style: normal;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILR.ttf);
}
@font-face {
font-family: "Charis";
font-weight: bold;
font-style: normal;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILB.ttf);
}
@font-face {
font-family: "Charis";
font-weight: normal;
font-style: italic;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILI.ttf);
}
@font-face {
font-family: "Charis";
font-weight: bold;
font-style: italic;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/CharisSILBI.ttf);
}
you need having the fonts actually copied in a directory called
fonts in the internal memory root directory of the reader.
You need also to indicate in your css to which part of the text the font will be applied:
Code:
body { font-family: "Charis", Times, serif; }
or
h1{ font-family: "Charis", Times, serif; }
etc.