![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
|
Preview error box using custom fonts
Hi, I've noticed this for a long time, but thought I'd bring it up for discussion. Basically, the red error window in the Preview pane uses headers and paragraphs that respect stylesheets linked in the document, and I think that maybe they shouldn't if possible.
From time to time, I'll be editing an ebook that uses a custom font for chapter headers (<h2>). Because the error message in the Preview pane respects linked styles, the error header (and presumably the body text if that is styled) will be presented using the defined styles from the linked sheet. Normally, this'll just mean an amusingly themed error heading, but in some cases it can make the error header illegible. The instance that prompted me to post this is an ebook I'm editing that uses alien number glyphs as chapter headers. See attached for a sanitized example. I know it's not a big deal but it seems like it ought to be a pretty quick improvement - the error headers and body text could just override the font-family style. As a bonus, it'd be nice if they could word wrap, but that's not as big an issue in my opinion. In any case, Sigil is great - keep up the good work, devs! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil doesn't generate that error page. It's the Chromium default error page. I'm not sure how we could fix that without having to code our own custom parsing error reporting.
Inspector shows the message is not even in the body of the html page--it's in the head with its own inline styling. So it's odd that the book's css would affect it. We'll have to do some investigating. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 839
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
|
h3 in parseerror is without inline styling.
This error is extremely rare when the CSS for h3 contains an unreadable font family. Adding one line: Code:
parsererror h3 {font-family: initial!important;} |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy on Preview Box | ebulerdo | Editor | 4 | 04-20-2022 10:47 PM |
Preview displaying as blank white box | RomanColumn | Sigil | 16 | 05-16-2020 07:54 AM |
Hacks Custom fonts as System fonts? | font332 | Amazon Kindle | 2 | 07-18-2019 11:54 PM |
Amazon.com Look Inside (preview) fonts | rollei | Amazon Kindle | 5 | 03-20-2014 03:27 AM |
Touch Fonts question (special characters in stock and custom fonts) | levil | Kobo Reader | 20 | 09-23-2011 01:51 PM |