|
|
#1 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 08:11 PM. |
|
|
|
|
|
#2 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,803
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Could maybe be the quotes around serif that aren't needed.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
|
That was exactly it. thanks!
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Determine font and font size on incoming epub? | peaceridge | Calibre | 4 | 01-30-2012 04:35 PM |
| how do I UN-font an epub? | affa | ePub | 4 | 04-20-2011 01:50 PM |
| ePub Font Subsetting | Cygfrydd | ePub | 2 | 08-17-2010 09:53 AM |
| PRS-600 Default EPUB font? | jamadams | Sony Reader | 5 | 04-07-2010 12:07 AM |
| ePub with external font | DairyKnight | Sony Reader | 34 | 02-22-2010 03:31 AM |