Quote:
Originally Posted by Andreea
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