View Single Post
Old 09-06-2020, 04:05 PM   #9
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,343
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by HaPeSchu View Post
Ok, it was only an assumption as i had this issue only in the new version with font-preview. Another thing that led me to this assumption: if i delete the fonts before saving the epub can be opened without problem. Its this Libertine dejavu crap which is just wasting space on my e-reader.
New bookid is just psrt of my clean up script (get rid of html elements in the description, separate a list of authors into single authors meta info, grab some informatuon fram amazon and so on...)
If you aren't running that script from within Sigil so it has the un-obfuscated fonts in memory, you are very likely destroying the key needed to decrypt the fonts. For me, the easiest workaround when an epub has encrypted fonts would be to open the epub with Sigil, select the font file, right click and set Font Obfuscation to none before running your script. You can then re-enable font obfuscation after running your script.

Edit: I managed to crash Sigil when I modified the urn:uuid dc:identifier line.

Code:
Error info: Cannot load file C:\Users\David\Desktop\Starlight - James Thatcher.epub: C:/Users/David/AppData/Local/Temp/Sigil-xhdWEU/OEBPS/Fonts/font00247.ttf: http://ns.adobe.com/pdf/enc#RC: 
Sigil version: 1.3.0
Runtime Qt: 5.12.9
Compiled Qt: 5.12.9
System: Windows 10 (10.0)
Architecture: x86_64

Last edited by DNSB; 09-06-2020 at 04:36 PM.
DNSB is offline   Reply With Quote