View Single Post
Old 07-20-2009, 05:58 AM   #596
dpierron
calibre2opds guru
dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.
 
dpierron's Avatar
 
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
@font-face instruction is not written in the CSS

Hi Kovid,
In the latest beta (0.6.0.b15), I tried converting a PRC file into ePub ; I specified a custom CSS, and it contained "@font-face" instructions along with "font-family" :

Code:
@font-face {
    font-family: "Caecilia";
    font-weight: normal;
    font-style: normal;
    src: url(CaeciliaLTStd-Roman.ttf);
    }
@font-face {
    font-family: "Caecilia";
    font-weight: bold;
    font-style: normal;
    src: url(CaeciliaLTStd-Bold.ttf);
    }
@font-face {
    font-family: "Caecilia";
    font-weight: bold;
    font-style: italic;
    src: url(CaeciliaLTStd-BoldItalic.ttf);
    }
@font-face {
    font-family: "Caecilia";
    font-weight: normal;
    font-style: italic;
    src: url(CaeciliaLTStd-Italic.ttf);
    }
body {
    font-family: "Caecilia", serif;
    }
The "font-family" instruction was written to the CSS in the ".text" definition (instead of "body") :

Code:
.text {
    display: block;
    font-family: "Caecilia", serif;
    font-size: 0.83333em;
    margin-bottom: 0;
    margin-left: 15pt;
    margin-right: 15pt;
    margin-top: 0;
    page-break-before: always;
    text-align: justify
    }
It may be a feature or a bug, I don't know...

But the @font-face instructions never found their way into the resulting CSS... this is a bug, isn't it ? Should I open a ticket ?

Cheers, and thanks for your work,
David.
dpierron is offline