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.
|