View Single Post
Old 09-06-2011, 08:39 PM   #262
SteveMB
Member
SteveMB began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2011
Device: Toshiba Thrive (Honeycomb Tablet); Touch Pro 2 (WinMo Phone)
I've found that I can get ebooks to use the correct fonts by:

1. Format the document with the desired font family.

2. Save the document as "Web Page, Filtered"

3. Place the font files for the desired font family in a /Mantano/fonts subdirectory under the main /Mantano directory.

4. Save the following code in the Calibre "Extra CSS" box:

@font-face{font-family:"Gentium Book Basic";font-style:normal;font-weight:normal;src:url(res:///fonts/GentiumBookBasic-Regular.ttf)}
@font-face{font-family:"Gentium Book Basic";font-style:italic;font-weight:normal;src:url(res:///fonts/GentiumBookBasic-Italic.ttf)}
@font-face{font-family:"Gentium Book Basic";font-style:normal;font-weight:bold;src:url(res:///fonts/GentiumBookBasic-Bold.ttf)}
@font-face{font-family:"Gentium Book Basic";font-style:italic;font-weight:bold;src:url(res:///fonts/GentiumBookBasic-BoldItalic.ttf)}

(Obviously, change the names to fit your chosen font family)

5. Import filtered-HTML document into Calibre and convert to ePub.
SteveMB is offline   Reply With Quote