Quote:
Originally Posted by Begemot
Thanks guys!
I would much rather change the fonts to free to distribute unecrypted versions that seems the legal route to take. (Not a fan of DRM)
In fact, I do not really need the embedded fonts at all in this particular epub, removing them is a bit of a pain though.
Need to remove them from fonts directory that is easy, also easy is removing them from CSS(just remove @font-face)
Finally there also references to fonts in the .xhtml files. such as
Code:
<p class="MinionPro-12-5-14"> </p>
That is PIA 
|
Actually, removing the fonts is very easy. I use Calibre's editor. You will want to set the preferences so metadata is not updated when you open the eBook.
To set the preferences, go to the Edit menu and then Preferences. Select Integration with Calibre and then make sure that Update metadata embedded in the book when opening is not checked.
Now to edit the eBook. Delete the fonts. Go to the CSS and delete the @font-face parts. Then edit the CSS to remove the classes (or edit as needed) that select the fonts. Next, go to the Tools menu and select Remove unused CSS Rules. That will remove any classes in the CSS not used and any classes in the XHTML not used. While you are at it, you might as well also go back to the Tools menu and select Compress images losslessly so the crud in the images will be removed for slightly smaller images without any loss of quality or size.Now Run check to check for any errors and if none, save and run the ePub through ePubcheck. If that comes out with no errors, you are done.