View Single Post
Old 05-29-2011, 10:31 PM   #8
sonyreaderfan
Groupie
sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.sonyreaderfan ought to be getting tired of karma fortunes by now.
 
Posts: 182
Karma: 203167
Join Date: Apr 2011
Device: Sony Reader Prs 950, iPad
Looks good so far. If you want to compare, my code is below. I've added code for line spacing. To use it, delete /* */.

CSS Instruction:

Before you change font, compare the Sony Reader default font and the Georgia font at large size to make sure you can tell the difference. the y's are very easy to distinguish between the two.

Copy this using Notepad into a textfile named userstyle.georgia.css. (really the name doesn't matter)


@font-face {
font-family: "Georgia";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/georgia.ttf);
}

@font-face {
font-family: "Georgia";
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/georgiab.tff);
}

@font-face {
font-family: "Georgia";
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/georgiai.tff);
}

@font-face {
font-family: "Georgia";
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/georgiaz.tff);
}

body {
font-family: "Georgia", serif;
/* line-height: 150% */

}

.calibre {
font-family: "Georgia", serif;
/* line-height: 150% */
}



Copy userstyle.georgia.css to READER\database\system\PRSPLUS\epub

You may have to make new directories (folders) (except for READER, which is the root directory). Make sure the name is right and properly capitalized.

You should have the file
READER\database\system\PRSPLUS\epub\userstyle.geor gia.css

Unplug the READER from computer. Go to PRS+ settings->Book Viewer Settings->User Epub Style and select userstyle.css.georgia.

Go back and check out the change with a epub. Sometimes the font change doesn't happen and requires the reader to be turned off and on again, so to be on the safe side, do that.

Also the font change doesn't happen with every ebook. For example, it doesn't work with the Suze Orman or Harlan Corben samples in the Reader, or any of the free Google ebooks. I think it's because they have weird css coding. But it works with your own generated epubs, epubs that I've bought (notable ones are from Random House) and epubs from Gutenberg Project. I would test with an epub from Gutenberg project.

I've tested this and it works. Just be sure to reboot. The font change doesn't happen right away.

Last edited by sonyreaderfan; 05-29-2011 at 10:42 PM.
sonyreaderfan is offline   Reply With Quote