View Single Post
Old 03-26-2011, 06:24 PM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,984
Karma: 1285294
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
ok thanks - the 2 readers I own - sony & kindle both substitute their own fonts for what is specified in epub/mobi code, so a book typically looks fine on an actual reader, but when I go to edit it in sigil then the strange font definitions kick in & affect book view.

the specific book that was bugging me has some strange code in the html pages:
Code:
@page {
    margin-bottom: 5pt;
    margin-top: 5pt
    }
  @font-face {
    font-style: normal;
    font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4;
    src: url(../fonts/LiberationSerif-Regular.ttf);
    font-weight: normal
    }
  @font-face {
    font-style: italic;
    font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4;
    src: url(../fonts/LiberationSerif-Italic.ttf);
    font-weight: normal
    }
  @font-face {
    font-style: normal;
    font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4;
    src: url(../fonts/LiberationSerif-Bold.ttf);
    font-weight: bold
    }
  @font-face {
    font-style: italic;
    font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4;
    src: url(../fonts/LiberationSerif-BoldItalic.ttf);
    font-weight: bold
    }
  @font-face {
    font-style: italic;
    font-family: Font_d3cfbc50-3e39-4d93-b1ef-c468eef0d5b4;
    src: url(../fonts/LiberationSerif-Italic.ttf)
 .....


<body class="epub">
  <div class="calibre">
then it had a epub style defined in the styles sheet which also referenced a font with a long alphanumeric gibberish name which I have now removed
Code:
.epub {
    display: block;
     **** font name removed from here now ****
    font-size: 1em;
    line-height: 1.2;
    margin-bottom: 0;
    margin-left: 5pt;
    margin-right: 5pt;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0
    }
I have not seen this anywhere else to data.

Last edited by cybmole; 03-26-2011 at 06:27 PM.
cybmole is offline   Reply With Quote