View Single Post
Old 05-22-2010, 02:07 PM   #5
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by MSJim View Post
I need help. My reader displays all my converted ePub books in what looks like Times New Roman. I’d like them to be in Georgia font.
What you did does not work well with calibre since Calibre ignores font-family settings with same name and uses just the first one when being placed in extra_css. What does work is following (I will use Liberation fonts since they are free):

1. Convert your text into well formed HTML
2. Place Liberation Serif fonts into same folder where HTML resides
3. Add this to the HTML after the title tag :

Code:
<style type="text/css">
@font-face { font-family: "Liberation Serif"; font-style: normal; font-weight: normal; src: url(LiberationSerif-Regular.ttf) }
@font-face { font-family: "Liberation Serif"; font-style: normal; font-weight: bold; src: url(LiberationSerif-Bold.ttf) }
@font-face { font-family: "Liberation Serif"; font-style: italic; font-weight: normal; src: url(LiberationSerif-Italic.ttf) }
@font-face { font-family: "Liberation Serif"; font-style: italic; font-weight: bold; src: url(LiberationSerif-BoldItalic.ttf) }
body {font-family: "Liberation Serif",serif} 
</style>
4. Import this HTML as new book into calibre and configure metadata.
5. Convert to EPUB and you will end up with e-book with embedded fonts.


Here is an example of e-book I generated using this procedure - Alice in wonderland
Attached Files
File Type: epub Alice's Adventures in Wonderland - Lewis Carroll.epub (467.8 KB, 363 views)
kiklop74 is offline   Reply With Quote