View Single Post
Old 12-12-2011, 12:10 AM   #1
gsgleason
Just some dude
gsgleason began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2011
Location: CO, US
Device: PRS-950, Kindle3
replacement css in prs+ book viewer setting - which properties are supported?

Hello, helpful forum. You have answered many of my questions already. Thanks for that.

My reader is less readable than my kindle 3 (keyboard); I am attempting to address this.

I installed PRSPlus primarily for its ability to set fonts locally on the device.

I installed Caecelia as follows:

I put the four variants in the /fonts directory on the device:
Code:
$ md5sum fonts/Caecilia-*
1e8329e21e714022d825a7b5e1d37cf0  fonts/Caecilia-BoldItalic.otf
e7b40bf06ed3a36005ab81ffddac6113  fonts/Caecilia-Bold.otf
19c92227885823fe74ab965f35988620  fonts/Caecilia-Italic.otf
b801fe454a580ef76dba7942567486a5  fonts/Caecilia-Roman.otf
Here is my css contents which are in /database/system/PRSPlus/epub/
Code:
font-face {font-family: "Caecilia";font-weight: normal;font-style: normal;src: url(res:///Data/fonts/Caecilia-Roman.otf);}
@font-face {font-family: "Caecilia";font-weight: bold;font-style: normal;src: url(res:///Data/fonts/Caecilia-Bold.otf);}
@font-face {font-family: "Caecilia";font-weight: normal;font-style: italic;src: url(res:///Data/fonts/Caecilia-Italic.otf);}
@font-face {font-family: "Caecilia";font-weight: bold;font-style: italic;src: url(res:///Data/fonts/Caecilia-BoldItalic.otf);}
body {
font-family: "Caecilia";
}
It reports as the following:
Code:
$ file -i database/system/PRSPlus/epub/Caecilia.css 
database/system/PRSPlus/epub/Caecilia.css: text/plain; charset=us-ascii
the results were better, but the lines were too close together, so I put the following in the css body section:
Code:
line-height:120%;
It didn't seem to do anything.

I then tried setting the 'font-size' to 80%, nothing. I tried fixed sizes as well, from 2 to 20 px. No change.

The css is valid, but I know not which properties the reader honors.

Any thoughts?

Last edited by gsgleason; 12-12-2011 at 12:13 AM.
gsgleason is offline   Reply With Quote