View Single Post
Old 02-19-2011, 07:21 AM   #2
tarzan
Junior Member
tarzan began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2011
Device: prs650
Very similar problem

I had e very similar problem on calibre 0.7.46. I was using the news recipe Kathimerini to get my news from Greece, but when I got that in my PRS 650 the accented (tonos , modern greek monotonic) fonts were replaced by question marks.

After many hours of happily swearing at Sony and the world in general, I decided to get some free fonts (GFSArtemisia from http://www.greekfontsociety.gr/) put them in a folder named "fonts" and add the following CSS to the EPUB:

@font-face {
font-family: "Arial";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/GFSArtemisia.otf);
}

@font-face {
font-family: "Arial";
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/GFSArtemisiaBold.otf);
}

@font-face {
font-family: "Arial";
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/GFSArtemisiaIt.otf);
}

@font-face {
font-family: "Arial";
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/GFSArtemisiaBoldIt.ttf);
}

body {
font-family: "Arial";
}


I tried converting EPUB to EPUB and adding the extra CSS through the GUI but that did not work.

I also tried to fix my problem to add the extra_css, by modifying the news recipe python script.

But nothing.

The only way I got it to work is by right clicking on the book and selecting "tweak EPUB", exploding the epub, adding the above css fragment to the stylesheet.css file and then rebuilding the EPUB, which worked fine in my PRS 650 (I hope Sony burns in hell for the time they wasted me :-) ).

This sounds like a calibre bug to me.
tarzan is offline   Reply With Quote