Here's another thing my experimenting has discovered. I just converted an epub file and had the conversion remove the "font-family" CSS rules and add the Charis font. It deleted the CSS codes for font-family, but left the font files in the file. It also changed the cover image, which resulted in being uncentered, when it was originally centered. Here is the CSS code for the class that is above the "<img...>:
.calibre11 {
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
}
There is no line for: text-align: center;
Here is the HTML code for the cover image after the conversion for an image that was already in the file:
<div class="calibre11">
<img src="cover.jpeg" alt="cover" class="calibre12"/>
</div>
Is this something that should be fixed in Calibre?
Also, could two new features be added to allow us to remove the actual font files and the xpgt files when converting? I know I could use Modify EPUB to do those two things, but since Calibre Convert does almost everything else...
It would be great if the cover image thing could be fixed and the two options to delete the font and xpgt files could be added.
Last edited by deback; 10-24-2017 at 08:48 PM.
|