|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Just some dude
![]() 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 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"; } Code:
$ file -i database/system/PRSPlus/epub/Caecilia.css database/system/PRSPlus/epub/Caecilia.css: text/plain; charset=us-ascii Code:
line-height:120%; 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. |
![]() |
![]() |
![]() |
#2 |
PRS+ author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
|
gsgleason,
I'd suggests overriding fonts as done here. That code is literally "overriding fonts". Other than that, note that "particular CSS changes nothing" doesn't necessarily mean, that it is not supported. Another explanation is: book has CSS that is more "specific", i.e. has higher priority. If the book has css that looks like, say: Code:
p.article { line-height: 100%; } PS Reminder: in PRS+ 2.0.x , you have to open different book, then get back to original book to actually apply new css. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 852
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
|
![]() |
![]() |
![]() |
#4 |
Just some dude
![]() Posts: 7
Karma: 10
Join Date: Dec 2011
Location: CO, US
Device: PRS-950, Kindle3
|
Just a quick update.
Applying the new fonts to class "caliblre" made everything work. .calibre{blah lbah} |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
full list of supported css properties? | n.k. | Kindle Formats | 7 | 05-09-2012 10:50 AM |
CSS not applying correctly in E-Book Viewer. | therealdrag0 | Calibre | 6 | 10-20-2011 11:19 AM |
# user css for viewer.py/ ebook-viewer/ prs-650 | tscamera | Calibre | 0 | 01-02-2011 06:28 PM |
Unsetting properties in CSS | Jellby | ePub | 2 | 06-03-2009 04:29 AM |
Supported HTML/CSS tags and properties | Jellby | Bookeen | 9 | 05-04-2008 04:55 PM |