View Single Post
Old 12-02-2014, 11:59 AM   #1
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,056
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Font integration problem

In the Editor mode, I imported a new font (via "File->New file), in this case a font named "FoglihtenNo07_0841.otf"). It properly was located in the "Fonts" directory.
Then, I added a "page_style.css" with (amongst others) this content:
Code:
@font-face {
    font-family: "FoglihtenNo07";
    src: url(OEBPS/Fonts/FoglihtenNo07_0841.otf)
    }
In the stylesheet, I assigned the font to certain headings and p classes, like this one:
Code:
.author {
  display: block;
  font-family: "FoglihtenNo07";
  font-size: 2em;
  line-height: 1.34;
  text-align: center;
  text-indent: 0;
  margin: 0;
}
In the live preview, all appeared fine, especially the headings etc. were written in this font style (that I had previously added to the Calibre font directory).

But when I executed the book check, I received this error: "The linked ressource 'OEBPS/Fonts/FoglihtenNo07_0841' does not exist [OEBPS/Styles/page_style.css]".

I have absolutely no idea what could be wrong; the funny thing is that I edited to volumes of the same book at the same time with the same styles etc. Concerning the first volume, the above mentioned error messages had occured when I edited it yesterday. When I repeated the check today, it was all clear. But when I treated the second volume in the same manner, the error message was there again.

Well, I could wait until tomorrow and try it again, but it would be fine to know what I did erroneous already today

Someone could help me, please?

Well, two volumes, of course, and the style sheets were correctly linked to the HTML files. And there is also the message that the font file is not referenced.

Last edited by Leonatus; 12-02-2014 at 12:15 PM.
Leonatus is offline   Reply With Quote