View Single Post
Old 01-25-2011, 06:20 AM   #1
silentguy
Connoisseur
silentguy doesn't littersilentguy doesn't littersilentguy doesn't litter
 
Posts: 88
Karma: 200
Join Date: Nov 2010
Location: Dortmund, Germany
Device: Kindle Paperwhite (10. Generation)
Removing embedded font/overwrite some css?

I have a collection of books and whoever created them embedded an ugly font for the whole book. I wanted to get rid of it so I ran an epub->epub conversion and not the fontsfiles are gone from the file, but the css file in the epun still contains a
Code:
.epub {
    display: block;
    font-family: "Font_71c88252-69ff-427d-9d08-e5662bb39245";
    font-size: 1em;
    margin-bottom: 0;
    margin-left: 5pt;
    margin-right: 5pt;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    page-break-before: always
    }
and the files themselve still contain a
Code:
<style type="text/css">
...
  @font-face {
    font-style: normal;
    font-family: Font_71c88252-69ff-427d-9d08-e5662bb39245;
    src: url(../fonts/LiberationSerif-Regular.ttf);
    font-weight: normal
    }
...
</style>
...
<body class="epub">
...
This is annoying cause it cases calibre to display the files differently. It uses a bigger sans serif font instead of what I expect. is there a way to get rid of the leftover stuff?
silentguy is offline   Reply With Quote