Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2011, 07:09 PM   #31
Garry Lancaster
Member
Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.Garry Lancaster writes the songs that make the whole world sing.
 
Posts: 24
Karma: 40062
Join Date: Oct 2011
Location: Westbury, UK
Device: Sony PRS-505; Sony PRS-650; TrekStor Pyrus Mini
Quote:
Originally Posted by edcoan View Post
Thanks, spacebrew. I now get the same results. I don't know why some ebooks still won't take the new fonts, but pasting your css in the epub with calibre is so far flawless.
I have some epubs I couldn't get to use new font-sizes, and eventually figured out the problem last night. These books were specifying various class properties, each with different styles, for <p> and <div> sections. To fix these, I changed the section which was applying the font sizes as follows:

Before:

Code:
p { 
 font-size: 70% !important;
 text-align: justify !important;
 margin-left: 0em !important; 
 margin-right: 0em !important; 
 }
After:


Code:
p,div,ul,dl,p[class],div[class] { 
 font-size: 70% !important;
 text-align: justify !important;
 margin-left: 0em !important; 
 margin-right: 0em !important; 
 }
It's possible that some epubs may have "id" or "style" properties associated with the <p> or <div> elements. In these cases, adding p[id] or p[style] etc to the list may work, but I haven't needed to try this.

(I added the ul and dl elements as well, as otherwise books such as the Calibre quick start guide weren't completely correct).

Last edited by Garry Lancaster; 11-12-2011 at 08:28 PM.
Garry Lancaster is offline   Reply With Quote
Old 08-24-2012, 06:29 AM   #32
sickenmcsluggets
Junior Member
sickenmcsluggets began at the beginning.
 
sickenmcsluggets's Avatar
 
Posts: 7
Karma: 10
Join Date: Feb 2010
Device: Sony PRS-T1
One stubborn book I could NOT get using this method, kept showing up in Times New Roman every time. I used the "Tweak Book" feature in Calibre, exploded the book, and did a find and replace on wherever I saw Times New Roman in one of the stylesheets with my preferred font, then rebuilt the book. That ended up working.

Last edited by sickenmcsluggets; 08-24-2012 at 06:31 AM.
sickenmcsluggets is offline   Reply With Quote
Reply

Tags
fonts, prs+, prs-350

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DR800 Changing Fonts on DR800S fredb iRex 15 12-25-2011 05:15 AM
Changing fonts Vit-orekhov enTourage eDGe 4 07-20-2011 12:57 AM
Development Changing fonts Vit-orekhov enTourage eDGe 0 07-18-2011 01:06 AM
Changing fonts Soxendom OpenInkpot 2 01-03-2010 10:14 AM
Changing text size and fonts with PRS 505 levi_john Sony Reader 1 01-20-2009 03:25 AM


All times are GMT -4. The time now is 12:43 AM.


MobileRead.com is a privately owned, operated and funded community.