08-17-2012, 06:55 PM | #1 |
Evangelist
Posts: 425
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. |
08-17-2012, 07:22 PM | #2 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
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 | |
|
08-17-2012, 07:27 PM | #3 |
Evangelist
Posts: 425
Karma: 77256
Join Date: Sep 2011
Device: none
|
That was exactly it. thanks!
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Determine font and font size on incoming epub? | peaceridge | Calibre | 4 | 01-30-2012 03:35 PM |
how do I UN-font an epub? | affa | ePub | 4 | 04-20-2011 12:50 PM |
ePub Font Subsetting | Cygfrydd | ePub | 2 | 08-17-2010 08:53 AM |
PRS-600 Default EPUB font? | jamadams | Sony Reader | 5 | 04-06-2010 11:07 PM |
ePub with external font | DairyKnight | Sony Reader | 34 | 02-22-2010 02:31 AM |