View Single Post
Old 11-25-2016, 10:17 AM   #51
hidden.platypus
Connoisseur
hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.
 
hidden.platypus's Avatar
 
Posts: 89
Karma: 190508
Join Date: May 2014
Device: Android
Quote:
Originally Posted by kovidgoyal View Post
Just use it and let me know if it does something unexpected
So I ran into another issue I either wasn't seeing, or was unaware of earlier.

When converting from docx, even after embedding the font, Calibre doesn't appear to reference the base font in stylesheet.css.

To be clear the only font it doesn't reference in that way appears to be the "base font" or body text font. I use the term "base font" because that's the nomenclature the conversion tools use. Even if I specify, during the conversion, that Arial is the base font it does not reference Arial.

It does not do this for other headings. So, in this same document, the headings are Arial, and they are referenced.

It doesn't matter whether the font is embedded in the docx file or not.

The font gets embedded now, and there is a font-face definition, but it isn't referenced in the stylesheet.

Calibre generates this code:

Code:
.block_5 {
    color: black;
    display: block;
    margin: 0 0 12pt;
    padding: 0
    }
Why doesn't it do this:

Code:
.block_5 {
    font-family: "Arial", sans-serif;
    color: black;
    display: block;
    margin: 0 0 12pt;
    padding: 0
    }

For the heading Calibre generates:

Code:
.block_11 {
    color: #2E74B5;
    display: block;
    font-family: "Arial", sans-serif;
    font-size: 2em;
    font-weight: normal;
    line-height: 1.08;
    page-break-after: avoid;
    page-break-inside: avoid;
    text-align: center;
    padding: 0;
    margin: 12pt 0 0
    }

Why the disparity?
hidden.platypus is offline   Reply With Quote