Quote:
Originally Posted by kovidgoyal
I need a sample docx file to tell you more.
|
Hi Kovid,
I've attached one here.
(FYI, the file I attached is a docx file. The forum doesn't like me uploading a docx file, so I renamed to doc. You should rename to docx before you start tinkering I think.)
In this Word file the heading is Cochin LT.
Calibre generates this css for the heading:
Code:
.block_ {
display: block;
font-family: "Cochin LT", serif;
font-size: 2em;
font-weight: normal;
line-height: 1.2;
page-break-after: avoid;
page-break-inside: avoid;
text-align: center;
padding: 0;
margin: 12pt 0 0 28.8pt
}
The base font / body text is supposed to be Arial
Calibre generates this:
Code:
.block_1 {
color: black;
display: block;
line-height: 1.2;
padding: 0;
margin: 0 0 12pt
}
I have one more style in the document. Indented, and in a different font just to test.
Calibre generates this:
Code:
.block_4 {
color: black;
display: block;
font-family: "URW Palladio L", serif;
font-size: 0.75em;
padding: 0;
margin: 0 0 8pt 28.8pt
}
I am not even sure I understand how Calibre gets the blue color to show in headings, when the CSS doesn't specify a color.
The only color reference is waaay down in the stylesheet:
Code:
.calibre {
color: #2E74B5;
display: block;
font-family: "Arial", sans-serif;
font-size: 1em;
padding-left: 0;
padding-right: 0;
margin: 0 5pt;
}
But this doesn't seem to be referenced anywhere.
Although, if I remove it, the heading loses its blue color, and the base font is no longer Arial.
Curiouser and curiouser.