Thanks Kartu. That's what I suspected, but it's good to know for sure.
If I understand correctly, there are three ways to change epub fonts:
1. Add a css to the epub that specifies the desired font and copy the font file(s) to the reader. This is most easily done with calibre, using the Extra CSS field when converting.
2. Copy the fonts you want to use to the reader, install PRS+, and add css files to the reader at /database/system/PRSPlus/epub/. Then select the desired css through the PRS+ SETTINGS menus of the reader. Whichever css file you select gets copied to style.css.
3. Modify the name of your desired font, and its filename. to match what the reader uses internally. Copy that to the reader, create a simple shell script on the reader to mount the location of your new font, and add a css to point to it.
I've tried #1, and it works ok, but it's not very flexible.
I haven't tried #3 yet. That's the one where there's a risk of bricking the reader. It does have the advantage of changing fonts for all types of books, not just epub.
#2 seems to be the most flexible, even though it applies only to epubs, but I haven't been able to get it to work.
I have the following fonts in the reader's /fonts directory:
DroidSerif-Bold.ttf
DroidSerif-BoldItalic.ttf
DroidSerif-Italic.ttf
DroidSerif-Regular.ttf
Fontin-Bold.ttf
Fontin-Italic.ttf
Fontin-Regular.ttf
Fontin-SmallCaps.ttf
WREXHAM_.TTF
And I have the following in the reader's /database/system/PRSPlus/epub directory:
FontsAsInLRF.css
droid.css
fontin.css
style.css
wrexham.css
Right now I have the wrexham css selected, so that's also what's in style.css. Here's how it looks:
@font-face {
font-family: "Wrexham Script";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/WREXHAM_.TTF);
}
@font-face {
font-family: "Wrexham Script";
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/WREXHAM_.TTF);
}
@font-face {
font-family: "Wrexham Script";
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/WREXHAM_.TTF);
}
@font-face {
font-family: "Wrexham Script";
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/WREXHAM_.TTF);
}
body {
font-family: "Wrexham Script", serif;
widows: 0;
orphans: 0;
}
Maybe I've just been looking at this for too long, but I don't see anything wrong with any of it. Or did I miss something essential along the way?
Thanks,
Denver
|