View Single Post
Old 03-02-2009, 06:26 PM   #10
Cygfrydd
Jackass Crazyfish
Cygfrydd began at the beginning.
 
Cygfrydd's Avatar
 
Posts: 7
Karma: 10
Join Date: Jan 2007
Location: St. Petersburg, Florida, US
Device: Sony Reader PRS-505
Quote:
Originally Posted by JSWolf View Post
Where in the Reader do the fonts go so they don't have to be included in the ePub?
On a PRS-505/700, you can access the Reader’s internal memory like a flash drive; it should mount automatically when you connect the USB. On that mount, create a directory (I just call mine "fonts"), and put the fonts there.

You can then access them from your stylesheets by using something akin to this:
Code:

@font-face {
  font-family: BerlingAntiqua ;
  font-style: normal ;
  font-weight: normal ;
  src: url('res:///Data/fonts/berling.ttf') ;
}

@font-face {
  font-family: BerlingAntiqua ;
  font-style: oblique ;
  font-weight: normal ;
  src: url('res:///Data/fonts/berlingi.ttf') ;
}

@font-face {
  font-family: BerlingAntiqua ;
  font-style: normal ;
  font-weight: bold ;
  src: url('res:///Data/fonts/berlingb.ttf') ;
}

@font-face {
  font-family: BerlingAntiqua ;
  font-style: oblique ;
  font-weight: bold ;
  src: url('res:///Data/fonts/berlingz.ttf') ;
}

p {
  font-family: BerlingAntiqua, serif ;
  margin : 0 ;
  padding : 0 ;
  text-align : justify ; /* not working on Sony yet */
  text-indent : 1em ;
  font-size: 120% ;
}
— @yg

-=<>=-=<>=-=<>=-=<>=-=<>=-=<>=-=<>=-
Cygfrydd Llewellyn | cygfrydd@gmail.com
-=<>=-=<>=-=<>=-=<>=-=<>=-=<>=-=<>=-

Old Tom was the single cracked bronze bell in the University bell tower.
The clapper dropped out shortly after it was cast, but the bell still
tolled out some tremendously sonorous silences every hour.
— (Terry Pratchett, Eric)
Cygfrydd is offline   Reply With Quote