View Single Post
Old 12-14-2011, 06:18 AM   #4
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by pssquirrel View Post
Thanks for the tip, but I actually don't want to strip the embedded fonts.

The T1 won't render consistent italics/bold unless the fonts are embedded or you use the Original font. Thanks to seabee and jackie_w, I'm able to embed resident fonts per this thread (see posts #22, 29 and 32).

But if I embed resident fonts for the T1, the PRS+ stylesheets don't work on the 350.

So I'm trying to figure out if there's a way to override embedded fonts using CSS alone without actually removing the embedded fonts. Is this even possible?
I've just tried this out on my PRS650 and PRST1. I didn't expect it to work but it does work for me.

When you say 'embed resident fonts' I assume you mean you have added @font-faces for one of the 6 T1 special fonts to the epub CSS file but not copied (i.e. embedded) the physical font files (.otf/.ttf)

I created an epub with the following added to the epub css file (as per referenced post #32)
Code:
@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);}
I then copied the same epub to both the 650 and T1.

As expected the T1 displays correctly with Amasis.
The same epub displays correctly as Charis on the 650.

My PRS+ selected css file is set up for Charis as follows:
Code:
@font-face { font-family: serif; font-weight: normal; font-style: normal;  src: url(res:///Data/fonts/CharisSILR.ttf);}
@font-face { font-family: serif; font-weight: normal; font-style: italic;  src: url(res:///Data/fonts/CharisSILI.ttf);}
@font-face { font-family: serif; font-weight: bold; font-style: normal;  src: url(res:///Data/fonts/CharisSILB.ttf);}
@font-face { font-family: serif; font-weight: bold; font-style: italic;  src: url(res:///Data/fonts/CharisSILBI.ttf);}
body {font-family: serif; line-height: 1.2}
body, body.calibre, body.calibre1, body.calibre2, body.calibre3, body.book {font-size: 0.85em !important;}

Does any of this help you track down your problem?

Last edited by jackie_w; 12-14-2011 at 06:26 AM.
jackie_w is offline   Reply With Quote