View Single Post
Old 04-14-2013, 03:37 PM   #2
sellew
Enthusiast
sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.
 
Posts: 30
Karma: 300
Join Date: Oct 2011
Location: Barcelona
Device: Sony PRS-650, PRS-T2
Quote:
Originally Posted by kaceyrohl View Post
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.
sellew is offline   Reply With Quote