09-26-2023, 05:32 PM | #16 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
My guess you have a third party system/file extension installed on Windows that tries to preview or open the font file and fails since it is not a recognized Windows file format. Stock Windows and Sigil does not crash using Add Existing to add woff files.
Please generate an actual crash report and post it in case provides a hint of what is going on. As others have said, Windows does not need to recognize the woff file in order to embed a woff font into an epub that will work with various readers and Sigil's Preview. |
03-06-2024, 05:36 PM | #17 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2023
Device: Kindle Fire
|
He's baaack.
One epub contains a handful of woff fonts. Sigil cannot open this epub. Calibre can. From Calibre, I delete the woff fonts and every mention of them in the .css or .xhtml's. Only then can I open the epub in Sigil. Then, in Sigil, I try "Add existing fonts", find the .woff files (which, as stated earlier, appear in the File Explorer window as a plain, unrecognized file-type icon), and ... Sigil just goes away. No message. I call this a crash. But a crash typically gives an error message, so I dunno. So, it just *seems* like it's not an installed (Windows) font. Someone says it can't be installed as a Windows font. If you say so. fyi, within Calibre (after I *deleted* the fonts), I try to re-add these .woff fonts. The "Add Font" file explorer recognizes only .ttf and .otf fonts. The person I inherited this epub from (as well as, apparently, everyone who's been gracious enough to read and reply here) has .woff fonts - if not "installed", then you/they have some other tweak that my Dell doesn't. Appreciate any ideas. |
Advert | |
|
03-06-2024, 07:35 PM | #18 |
Bibliophagist
Posts: 39,695
Karma: 154147704
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Just for the heck of it and having some time to kill while the granddaugter is nappping, I added some WOFF2 fonts to my old font tester epub. I used the IBM Plex Serif and Mono fonts in bold, bold-italic, italic and regular variants.
I added the fonts using the Add existing files tool and no issues. I added the @font-face bits and bobs to the stylesheet, added the serif font family to the <body> class and the mono font family to the <code> class. All looks good and other than complaining about my use of webkit extensions, Sigil seems happy enough. Please note that this did not require adding the WOFF2 files to the Windows Fonts. I just unzipped the Plex-master.zip to a folder and browsed to the files. I've attached the epub file. Last edited by DNSB; 03-06-2024 at 07:38 PM. |
03-06-2024, 10:03 PM | #19 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
So whatever is happening with your epub appears to be specific to your machine.
Have you tested the original epub with epubcheck? If so does it detect any errors? |
03-07-2024, 09:24 PM | #20 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2023
Device: Kindle Fire
|
@DNSB (and others I think)
When you go to add a woff font, do you view/select it in a standard Windows File Explorer window? If so, does the .woff file have a "recognized" file-type icon? or (what I see) a plain, vanilla "unrecognized" icon, looking like a paper with the top right corner folded down? re: epubcheck ... As I mentioned, the only way I can open the original epub is to use Calibre. Using its "Check Book" tool (which I'm pretty sure runs EpubCheck) I get: - - - - OEBPS/Fonts/GentiumBookPlus-Bold.woff This font could not be processed. It most likely will not work in an e-book reader, either - - - - So it apparently *is* my machine. Does anyone have any suggestions as to what is wrong with my machine? I have no idea where to start looking. |
Advert | |
|
03-07-2024, 10:04 PM | #21 |
A Hairy Wizard
Posts: 3,197
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Is the font file perhaps obfuscated? I don’t think Sigil opens up epubs with that???
|
03-08-2024, 02:23 AM | #22 | |
Bibliophagist
Posts: 39,695
Karma: 154147704
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
If you download the epub I attached, does it open in Sigil on your computer? |
|
03-08-2024, 03:28 AM | #23 | ||
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
Start a Command Prompt as an Administrator Then use the following MS article to check for corrupted system files: Use the System File Checker tool to repair missing or corrupted system files If the tool reports that broken system files were found, you might want to reboot your laptop. |
||
03-08-2024, 05:41 AM | #24 |
Resident Curmudgeon
Posts: 75,981
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
03-08-2024, 09:13 AM | #25 | |
A Hairy Wizard
Posts: 3,197
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Granted, I don't see it very often, and not in a while, but that is because font-obfuscation is not super common in the first place... unless this was fixed in a recent version of Sigil and I missed it??? I'm also not sure that is the problem in this case, just thought I'd throw it out there as a possibility. Last edited by Turtle91; 03-08-2024 at 09:27 AM. |
|
03-08-2024, 09:45 AM | #26 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Same as your e-reader, Sigil can only deobfuscate fonts that are still part of a properly formatted epub. Otherwise no obfuscation or deobfuscation.
Sigil can do nothing with improperly subsetted fonts. Nothing can. |
03-08-2024, 11:20 AM | #27 | |
Resident Curmudgeon
Posts: 75,981
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
03-08-2024, 01:16 PM | #28 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
The bug related to font deobfuscation and updating the encryption.xml file was introduced and fixed a few releases back (1.9.10). Sigil 2.0.2 should not have any issues with epubs with properly obfuscated fonts.
Last edited by KevinH; 03-08-2024 at 01:21 PM. |
03-08-2024, 09:03 PM | #29 |
A Hairy Wizard
Posts: 3,197
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
03-09-2024, 08:33 AM | #30 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2023
Device: Kindle Fire
|
@DNSB
My Sigil cannot open your test epub. Thanks, all, for your attempts. I'll chase down System File Checker, etc. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Libra 2 Installing Custom Fonts | BookCat | Kobo Reader | 41 | 04-05-2022 09:01 AM |
Installing fonts | Pajamaman | KOReader | 6 | 09-05-2020 02:06 PM |
Installing Tamil Fonts on SnPRS - T2 | Raman | Sony Reader | 3 | 01-12-2013 11:54 AM |
Installing Tamil Fonts on Kindle 4.1.0 | sriramvenkatesan | Amazon Kindle | 14 | 10-22-2012 10:45 AM |
PRS-T1 Still have a problem with installing fonts in my device | hamedavatar | Sony Reader | 5 | 06-21-2012 05:46 PM |