Thread: PRS-350 Changing Fonts in PRS+
View Single Post
Old 10-30-2011, 11:24 AM   #12
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
k9reader:

CSS:
Accidentally this minutes I was thinking about a new thread for collecting useful CSS-code...

I've to admit that my understanding in CSS is VERY low. So I'm collecting CSS-snippets which I test with PRS+. Work in progress. In the different CSS-files I just alter the number of the font-size (0.96, 0.97, ...).


Nimbus Mod:

Yes, I think Delphin vanished. It is to hope voluntarily. Regarding his font-mod:
Bold and BoldOblique is missing. But that doesn't bother me because the books I'm reading there is just very view text formatted that kind. And if, it doesn't look bad. To throw this fonts completely from the reader just because there is no 'real' bold font is ridiculous for me.


Important, beside the font itself to me is:
  • Text should be aligned on the left side
  • Not too much line space
  • No/very few white margins

CSS (work in progress) for the size 0.97:


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

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

body 
{
 font-family: "serif"; 
 margin:0em !important;
} 
 
@page 
{
margin-left:0em !important;
margin-right:0em !important;
margin-top:0.5em !important;
margin-bottom:0em !important;	
}

 html 
{ 
 font-family: serif !important;
}

p, div 
{ 
font-size: 0.97em !important;
text-align: left !important;
line-height: 115% !important;
margin:0em !important;
}

I have the suspicion that the '!important' statement doesn't work at all. It should override CSS in ePubs. So you could delete all this statements.

It would be fine to have the possibility to COMBINE CSS-code with PRS+ to reduce the number of files.
Collecting information regarding CSS & PRS+ coul be very useful.


A.

Last edited by Analogus; 10-30-2011 at 11:30 AM.
Analogus is offline   Reply With Quote