Quote:
Originally Posted by roger64
A slow technique
For the time being, the technique used for producing this subset is obviously slower than the one used with Calibre. I hope you are aware that this thread belongs to a workshop and that the current method is not to be used for ever.
For example, if somebody from the Sigil team shows later some interest in it, it's will be an easy task to make a plugin out of it or even to integrate it exactly the way it is with the Calibre editor. The list of characters is already produced both by the Calibre editor and Sigil. After that you just need to launch a single command for each font... It's really a basic stuff.
|
This day arrived.
The plugin
SubsetFonts - Simple font subsetter has been published.
Once the plugin has been installed, creating a subset of all existing fonts (otf, ttf, woff...) of one EPUB is as simple as just launching the plugin from the Sigil plugin menu.
Currently the subsets are built only again the main list of characters produced with the GlyphIgo library. For this reason, it will probably provide you with a size saving advantage if you limit its use to regular and italic fonts.
For those who may be interested, the
fonttools team published also the
pyftinspect tool which allows you to check technically the font or the subset.
Code:
pyftinspect <myfont>
This plugin will hopefully later be completed with another tool allowing to build the subset again dedicated list of characters (italic, bold, ..). Research is on its way, Any idea welcome.