After making the suggested change in plugin.py and changing permissions on DejaVuSans.ttf to 666 (was 664) I still get the file not found error...
but checking the temporary files,
Code:
$ ls -la /tmp/Sigil-2PHn8A/OEBPS/Fonts
total 772
drwxrwxr-x 2 u838190 u838190 4096 Feb 11 11:41 .
drwxrwxr-x 9 u838190 u838190 4096 Feb 11 11:37 ..
-rw-rw-rw- 1 u838190 u838190 756072 Feb 11 11:38 DejaVuSans.ttf
-rw-rw-r-- 1 u838190 u838190 21652 Feb 11 11:41 DejaVuSans.ttf.subset
so evidently pyftsubset was able to write the subsetted font to the disk, using its default naming.
so at line 88 in plugin.py I changed:
Code:
subset_font_path = original_font_path.replace(ext, '.subset' + ext)
to:
Code:
subset_font_path = original_font_path.replace(ext, ext + '.subset')]
and lo and behold,
Code:
Status: success
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
Subset file size: 21652 (2.86%)
Original font replaced with subset font.
Click OK to close.
The epub size was reduced from ~408 kB before subsetting to ~52.4 kB afterwards.
For comparison, subsetting with Calibre's epub editor gave ~111.5 kB
and with no fonts embedded, it was 38.6 kB
Thanks for the pointers, without which I probably wouldn't have known where to begin.
Albert