View Single Post
Old 08-17-2012, 06:55 PM   #1
democrite
Evangelist
democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.
 
Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
ePub not using specified Amasis font

Hi,

I normally change the CSS files of all my ePubs so they use Amasis. For one particular one (with a calibre style sheet), it doesn't. I really can't figure out why. Maybe someone has an idea?

Below is the only relevant part of the CSS (I think) that works everywhere else. I've gone over it a zillion times and really am clueless.

edit: and font switching seems to not work either.

Code:
@font-face {font-family: sans-serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/AmasisMTW1G.otf)}
@font-face {font-family: sans-serif; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/AmasisMTW1G-Italic.otf);}
@font-face {font-family: sans-serif; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/AmasisMTW1G-Bold.otf);}
@font-face {font-family: sans-serif; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/AmasisMTW1G-BoldItalic.otf);}     

@font-face {font-family: serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/AmasisMTW1G.otf)}
@font-face {font-family: serif; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/AmasisMTW1G-Italic.otf);}
@font-face {font-family: serif; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/AmasisMTW1G-Bold.otf);}
@font-face {font-family: serif; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/AmasisMTW1G-BoldItalic.otf);}

…
.calibre12 {
    font-family: "serif";
    text-indent:1.1em
    }
.calibre2 {
    font-family: "serif";
    }
Code:
<p class="calibre12"><span class="calibre2">«*Eh bien, voilą,
reprit-il, je viens pour la chambre que vous avez ą louer.*»</span></p>

Last edited by democrite; 08-17-2012 at 07:11 PM.
democrite is offline   Reply With Quote