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!
|