Quote:
Originally Posted by jackie_w
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
|
thank you for your time
jackie, it is clear now how to include these statements in the css file inside each epub, the post no.29 that confuse me:
Quote:
I finally succeeded for references to any PRS-T1 integrated font !
for exemple:
@font-face {
font-family: MyFont1;
font-weight: normal;
font-style: normal;
src: url(res:///ebook/fonts/FrutigerNeueLTW1G-Regular.otf);
}
Don't need to include a copy of these fonts in each ePUB !
|
p.s. I'm trying to use
Amasis on all my epubs and it's gonna take me some time to modify each css file.