I got curious about font subsetting, which I usually don't do, because I usually don't embed fonts in the first place.
I got the following error(s):
Spoiler:
Code:
Status: failed
Using external Python interpreter.
fontTools version: 3.21.2
Characters used in this epub:
!"#$%'()*,-./0123456789:;?@ABCDEFGHIJKLMNOPQRSTUVWXY[]abcdefghijklmnopqrstuvwxyz —
Processing font: DejaVuSans.ttf...
Original file size: 756072
/usr/local/share/sigil/plugin_launchers/python/sigil_bs4/__init__.py:187: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
To get rid of this warning, change this:
BeautifulSoup([your markup])
to this:
BeautifulSoup([your markup], "lxml")
markup_type=markup_type))
Traceback (most recent call last):
File "/usr/local/share/sigil/plugin_launchers/python/launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "/home/u838190/.local/share/sigil-ebook/sigil/plugins/SubsetFonts/plugin.py", line 89, in run
subset_font_size = os.path.getsize(subset_font_path)
File "/usr/lib/python3.5/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/Sigil-6pXaXW/OEBPS/Fonts/DejaVuSans.subset.ttf'
Error: [Errno 2] No such file or directory: '/tmp/Sigil-6pXaXW/OEBPS/Fonts/DejaVuSans.subset.ttf'
I'm running linux, Kubuntu 16.04.3, Sigil 0.9.9 compiled from source, Qt 5.6.1. I believe I have all the needed python modules installed.
Running pyftsubset from the command line, using the above character string supplied in a file, runs successfully.
I must be missing something. Probably something obvious.
Albert