Thread: ePUB Optimizer
View Single Post
Old 05-24-2016, 02:47 AM   #82
bentleymaniac
Enthusiast
bentleymaniac began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
Hi Toxaris,
I'm currently editing some ebooks for personal use (I can't upload them as the copyright hasn't quite expired yet) and tried using your epub optimizer to subset the fonts. I ended up with really weird results. It seems as if the plugin removed some letters that were actually used in the book. Here are screenshots:

Before:Click image for larger version

Name:	Screen Shot 05-24-16 at 04.41 PM.JPG
Views:	395
Size:	111.1 KB
ID:	148877

After:Click image for larger version

Name:	Screen Shot 05-24-16 at 04.42 PM.JPG
Views:	418
Size:	110.0 KB
ID:	148878

Css:
Code:
@font-face {
    font-family: "Small Caps";
    font-variant: small-caps;
    src: url("../Fonts/SmallCaps.ttf") format("truetype");
}

h1 {
    font-family: "Small Caps";
    font-variant: small-caps;
    text-align: center;
    font-size: 1.6em;
}

li {
    font-family: "Small Caps";
    padding: 0px;
    font-size: 0.9em;
    margin-top: 0px;
}

ol {
    font-family: "Small Caps";
    font-variant: small-caps;
    padding: 0px;
    font-size: 1.2em;
    margin-top: 0px;
    text-indent: 1.2em;
    text-align: justify;
}
HTML:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en" xml:lang="en">
<head>
  <meta charset="utf-8"/>
  <style type="text/css">
    nav#landmarks, nav#page-list { display:none; }
    ol { list-style-type: none; }
  </style>
  <title></title>
  <link href="../Styles/Style0001.css" type="text/css" rel="stylesheet"/>
</head>

<body epub:type="frontmatter">
  <nav epub:type="toc" id="toc">
    <h1>Table of Contents</h1>
    <ol>
      <li>
        <a href="../Text/A%20Word%20in%20Advance.xhtml">A Word in Advance</a>
      </li>
      <li>
        <a href="../Text/A%20Test%20of%20Nerve.xhtml">A Test of Nerve</a>
      </li>
      <li>
        <a href="../Text/A%20Chapter%20of%20Adventures.xhtml">A Chapter of Adventures</a>
      </li>
      <li>
        <a href="../Text/More%20Trouble.xhtml">More Trouble</a>
      </li>
      <li>
        <a href="../Text/Death%20in%20the%20Water.xhtml">Death in the Water</a>
      </li>
      <li>
        <a href="../Text/The%20Big%20Bad%20Bear.xhtml">The Big Bad Bear</a>
      </li>
      <li>
        <a href="../Text/The%20One%20That%20Got%20Away.xhtml">The One That Got Away</a>
      </li>
      <li>
        <a href="../Text/A%20Sort%20of%20Education.xhtml">A Sort of Education</a>
      </li>
      <li>
        <a href="../Text/Living%20Dangerously.xhtml">Living Dangerously</a>
      </li>
      <li>
        <a href="../Text/The%20Thugs.xhtml">The Thugs</a>
      </li>
      <li>
        <a href="../Text/The%20Black%20Intruder.xhtml">The Black Intruder</a>
      </li>
      <li>
        <a href="../Text/A%20Professor%20Learns%20a%20Lesson.xhtml">A Professor Learns a Lesson</a>
      </li>
      <li>
        <a href="../Text/The%20Foolish%20Tiger.xhtml">The Foolish Tiger</a>
      </li>
      <li>
        <a href="../Text/The%20Last%20Adventure.xhtml">The Last Adventure</a>
      </li>
      <li>
        <a href="../Text/In%20Conclusion.xhtml">In Conclusion</a>
      </li>
      <li>
        <a href="../Text/Notes.xhtml">Notes</a>
      </li>
    </ol>
  </nav>
</body>
</html>
bentleymaniac is offline   Reply With Quote