Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2010, 07:44 PM   #1
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
how to get a serif font to work in an epub

hi, trying ti get a serif font to work in an epub made by calibre.

i am altering the css by adding:

body {
font-family: "Times", "Times New Roman", serif;
}

to the stylesheet.css file in the unzipped epub.

doing a kindlegen on the opf, and viewing the mobi file in kindle reader shows me a serif font.

zipping up the epub (it still passes epubcheck) and viewing with mobi reader shows me a sans-serif font.

how do i make the epub use a serif font?

thanks
Ray Tayek is offline   Reply With Quote
Old 11-28-2010, 07:51 PM   #2
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by Ray Tayek View Post
zipping up the epub (it still passes epubcheck) and viewing with mobi reader shows me a sans-serif font.
If "mobi reader" is Windows MobiPocket Reader (WMR), it does not read ePub directly. If you "import" an ePub WMR will convert it to MOBI and then display the MOBI. You could just as easily have it read the MOBI from kindlegen (WMR invokes an older version of kindlegen to do the conversion).

The usual advise for a MOBI ebook is not to set the font, because WMR (for example) allows the reader to choose the font they like. I think it should honor "serif" though.
wallcraft is offline   Reply With Quote
Advert
Old 11-28-2010, 07:54 PM   #3
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by Ray Tayek View Post
hi, trying ti get a serif font to work in an epub made by calibre.

i am altering the css by adding:

body {
font-family: "Times", "Times New Roman", serif;
}

to the stylesheet.css file in the unzipped epub.
It is probably easier and less error prone to use Calibre's Extra CSS to do this.
wallcraft is offline   Reply With Quote
Old 11-29-2010, 05:36 PM   #4
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
Quote:
Originally Posted by wallcraft View Post
It is probably easier and less error prone to use Calibre's Extra CSS to do this.
i'll give that a try.

thanks
Ray Tayek is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the K3 default sans serif font? jswinden Amazon Kindle 4 09-20-2010 11:59 AM
Best Serif font for KDX PDF? Ugly anti-aliasing guiyoforward Amazon Kindle 9 08-14-2010 09:35 AM
Which typeface should use for ebook, Serif or Sans-serif droople Workshop 8 06-13-2010 07:20 AM
Serif and Sans-Serif fonts in Libprs500 benong Calibre 1 02-06-2008 04:43 AM
Do you prefer the Reader's serif or its sans serif font? (poll) Alexander Turcic Sony Reader 9 11-25-2006 12:15 PM


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


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