View Single Post
Old 12-21-2010, 04:51 AM   #6
m2b999
Member
m2b999 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Dec 2010
Device: Kindle 3
Quote:
Originally Posted by kiklop74 View Post
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
Is there a way you can do that in kindle 3?

I tried converting ePub book to MOBI format in order to let my kindle support it, but since it was an Arabic book kindle showed squares and question marks instead of regular letters.
m2b999 is offline   Reply With Quote