View Single Post
Old 12-24-2011, 03:47 PM   #80
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,254
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Andreea View Post
these statements must be included in the css file inside the "fonts" directory?
how can i access this directory?
Tks.
Using the method you have referenced you do not need to worry about a fonts directory. It already exists inside your T1, even though you can't see it.

These @font-face statements must be inserted into the .css file found inside each epub book. The @font-faces you quoted are telling the epub where to find the 4 Amasis font files contained in the T1. This method is a workaround to ensure that bold and italics work correctly when using Amasis. You must also leave Selected Font Type set to 'Original'.
  • Use your favourite unzip utility (e.g. 7zip, WinRAR, Calibre Tweak epub) to open the epub.
  • Find the .css file and copy/paste the @font-faces into it using your favourite text editor.

I always put the @font-faces at the beginning of the .css file (but I'm not sure whether this is important).
Note: if the .css file has a header line, something like the following, put the @font-faces after it.
Code:
@namespace h "http://www.w3.org/1999/xhtml";

Edit: If you are using Calibre to create your epubs, you can set it up to automatically copy the @font-faces into the epub during the conversion process by copying them into the Look&Feel - ExtraCSS box

Last edited by jackie_w; 12-24-2011 at 03:53 PM. Reason: more info
jackie_w is offline   Reply With Quote