Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-17-2012, 07:55 PM   #1
democrite
Groupie
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: 165
Karma: 77002
Join Date: Sep 2011
Device: Sony PRS-T1, iPad Mini, iPhone
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.
democrite is offline   Reply With Quote
Old 08-17-2012, 08:22 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 44,901
Karma: 31773514
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Could maybe be the quotes around serif that aren't needed.
JSWolf is online now   Reply With Quote
 
Advertisement
Old 08-17-2012, 08:27 PM   #3
democrite
Groupie
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: 165
Karma: 77002
Join Date: Sep 2011
Device: Sony PRS-T1, iPad Mini, iPhone
That was exactly it. thanks!
democrite is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 09:09 AM.


MobileRead.com is a privately owned, operated and funded community.