View Single Post
Old 02-24-2012, 10:00 AM   #3
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: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Charis SIL is a very nice font to use and it's the font used by most publishers when they embed fonts as it's free. This is the code to use Charis such that it will work and still allow readers that can change fonts to do so.

Put the fonts directory in the same place as the stylesheet. So if you have OEBS/style.css then you want OEBS/fonts/.

Code:
@font-face {
  font-family: serif;
  font-weight: normal;
  font-style: normal;
  src: url(fonts/CharisSILR.ttf)
}
@font-face {
  font-family: serif;
  font-weight: bold;
  font-style: normal;
  src: url(fonts/CharisSILB.ttf)
}
@font-face {
  font-family: serif;
  font-weight: normal;
  font-style: italic;
  src: url(fonts/CharisSILI.ttf)
}
@font-face {
  font-family: serif;
  font-weight: bold;
  font-style: italic;
  src: url(fonts/CharisSILBI.ttf)
}
body {
  font-family: serif;
  widows: 0;
  orphans: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: justify
}
JSWolf is offline   Reply With Quote