View Single Post
Old 08-16-2011, 07:35 PM   #1
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
epubs that resist custom font changes

I used PRS+ to add custom fonts. The directions and the custom css are exactly as described in a write-up by Anamardoll.

http://www.anamardoll.com/2011/06/er...tion-with.html

The font changes take place for most epubs and work great. However, I came across some epubs that are resistant to font changes. I've attached one below (grimms_nofontchange.epub). The font displayed is the default Sony Reader font.

The epub that is resistant to font changes is the Grimm's Stories from Sony's free Google books. In fact, any ebooks from Google's free classic ebooks are resistant to font change. I then downloaded another Grimm's Story from Gutenberg Project, and that version allows font changes (grimms_fontchanges.epub).

Does anyone know how to make the resistant epub take on font changes, either by modifying the custom css used by PRS+, or converting the epub through Calibre?

Also, reasons why the epub is resistant to font changes?

Thanks. Help much appreciated.

P.S. I know an easy answer is just to get the Gutenberg version for the classics but I've came across some commercial epubs that are resistant to font changes. My plan is to fix them either through changing css file, or converting the commercial epubs through Calibre (after de-drming them.)

P.P.S: Am I allowed to attach drm-free samples of commercial work? An commercial epub that resist font change is The Odyssey, translated by Robert Fagles. The free sample epub I've downloaded is from Barnes and Noble.
http://www.barnesandnoble.com/w/odys...obert%2bfagles If you want to download the sample and test for yourself.

Because Sony ebookstores and Kobo bookstores don't have free sample epubs, I download the sample epub from Barnes and Noble to see how it'll look on the Sony Reader. Since it's epub format, it approximates the purchased Sony or Kobo version.

CSS details:
This is the custom css I used.

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

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

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

@font-face {
font-family: "Charis";
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/Charis-BoldItalic.ttf);
}

body {
font-family: "Charis";
}


@font-face {
font-family: "Charis";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/Charis-Regular.ttf);
}
Attached Files
File Type: epub Grimms-fontschange.epub (1.57 MB, 144 views)
File Type: epub Grimms_nofontchange.epub (1.40 MB, 146 views)

Last edited by sonyreaderfan; 08-16-2011 at 11:53 PM.
sonyreaderfan is offline   Reply With Quote