Quote:
Originally Posted by notsure
How did you know to do that? I didn't see it listed anywhere.
|
Unfortunately there is no one way which always works. You have to look at the HTML and CSS inside the epub to decide what needs to go in ExtraCSS.
In your source epub each piece of HTML started with:
Code:
<body text="#000000" class="calibre">
rather than just plain
And the relevant bit of CSS contained:
Code:
.calibre {
background-color: #fff;
display: block;
font-family: Times New Roman;
font-size: 1em;
font-weight: normal;
line-height: normal;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 13pt;
margin-top: 0;
page-break-before: always;
text-align: justify
}
i.e. the font-family you needed to override was at a lower level than <body>. Hence, to replace "Times New Roman" with "Fontin" in the converted epub CSS you needed the ExtraCSS to specify
body.calibre {font-family: "Fontin", serif;}
[By the way, I know you didn't create the source epub, but for info, there should have been double quotes around the
Times New Roman because it contained spaces.]