View Single Post
Old 03-26-2022, 04:27 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,881
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I've run into what appears to be a bug with Sigil 1.9.2 and fonts as reported by epubcheck.

I opened an epub to do a bit of editing, set the font encryption (request from the author) and closed it. When I re-opened it to do a few other changes, epubcheck was reporting that the fonts could not be decrypted. When I clicked on the font file to take a quick look at it, I did notice that instead of the font name, I was getting No reliable font data.

I then dumped the original font files into a sample epub and no issues. Added IDPF encryption and epubcheck complained. Generated another sample and tried Adobe encryption and epubcheck complained. With the two encrypted font epubs, I tried changing the encryption to none and the other encryption option and no errors were reported in the process but when I closed and reopened the epub, the encryption type hadn't changed.

A bit of further playing with a copy of Sigil 1.3.0 x86 that I still have installed did not show errors in epubcheck and I could change the encryption and after saving and re-opening the epub, the font encryption had appeared to change to none from IDPF. Still using Sigil 1.3.0, epubcheck showed no issues and clicking on the font file showed the expected. Going back to Sigil 1.9.2, clicking on the font file looked okay but epubcheck still complained the file could not be decrypted.

Edit: One item I should have mentioned is the fonts embedded in the epub were subsetted. For instance, in Aria BoldItalic, the 6 and 7 are missing.
Attached Thumbnails
Click image for larger version

Name:	Epub from v1.92.jpg
Views:	159
Size:	404.6 KB
ID:	192960   Click image for larger version

Name:	Epub from v1.30.jpg
Views:	142
Size:	400.9 KB
ID:	192961  
Attached Files
File Type: epub Font_none.epub (273.5 KB, 150 views)
File Type: epub Font_IDPF.epub (273.9 KB, 150 views)
File Type: epub Font_Adobe.epub (276.4 KB, 160 views)
File Type: epub Font_IDPF_v130.epub (276.5 KB, 151 views)

Last edited by DNSB; 03-26-2022 at 04:33 PM.
DNSB is offline   Reply With Quote