04-02-2013, 07:05 PM | #1 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
Why is Sigil 0.7.1 displaying all text oblique?
I've just updated to 0.7.1 from 0.6.0, mainly to get the italic text to display in "Book View" when working on epubs with embedded font sets. All the text is displayed oblique, even text that's supposed to be italic is rendered in slanted roman font rather than italic. This is with two different font families, though one doesn't have an italic font.
Correction: Italic text is being displayed in italic font, but it looks like it's rendered oblique in addition. The epub I first opened was one created by ABBY FineReader from which I'd removed some unused fonts and cleaned with Pretty Print in Sigil 0.6.0. The original epub from FR displays correctly in "Book View" of Sigil 0.7.1 until I delete one of the unused fonts, then all the text displays oblique. All the epubs are displayed correctly in the newest Calibre(0.9.25.0) ebook-viewer. I should add that this occurs in XP SP3. Last edited by Abull; 04-02-2013 at 11:48 PM. |
04-03-2013, 02:30 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Are you sure the font-embedding is done as it should?
|
04-03-2013, 03:12 AM | #3 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
They display correctly before the unused fonts are removed, and in Calibres ebook-viewer both with and without the deleted fonts. Sigil places them in the "Fonts" folder and they are listed in the content.opf. What else could I check to determine if the font-embedding is done properly?
|
04-03-2013, 05:42 AM | #4 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
They should be correctly defined in the stylesheet(s). The readers from both Calibre and Sigil are not good judges. If you really want to check whether the embedded fonts work, look on a reader or ADE.
|
04-03-2013, 05:50 AM | #5 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
If I open the original FR produced epub with WinRAR and delete the unused fonts, extract main.css and content.opf and edit them with notepad to remove references to the deleted fonts, and then open the altered epub in Sigil with Pretty Print set to clean on opening, it displays the text correctly without slanting.
If I open the altered epub in Sigil with clean on open turned off and save with cleaning turned on it will still display slanted text for all fonts. |
04-03-2013, 06:00 AM | #6 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
I don't have ADE, and the only reader I have is a Nokia Nuron with Albite, which only uses it's own font.
|
04-03-2013, 06:16 AM | #7 |
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
Immediately after saving a copy of main.css from inside Sigil, "book-view" reverted to displaying all the text slanted.
|
04-03-2013, 07:08 AM | #8 | |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Quote:
It sounds as if there is a problem with the font definitions in your stylesheet. Only the italic variant is being used. If you like to make your epub file available somewhere we'll have a look at it. As you have discovered, support for fonts on reading devices is patchy, to say the least! Are you sure you REALLY need anything beyond the standard ones? Readers are great for reading. They suck at imitating the layout of a printed page. |
|
04-03-2013, 09:47 AM | #9 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I agree, Something is messed up in the stylesheet.
Yo said you REMOVED the embedded fonts. How? Deleting the Font files in the Font section is the LAST step. First step is to adjust the font-family: x,y,z List in the selectors. Second Place is to remove the corresponding (to the font being removed) @font definition Last is remove the Font file itself Leaving the first 2 intact will invoce 'fallback' rules |
04-03-2013, 03:55 PM | #10 | ||||
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
Quote:
Quote:
Quote:
Quote:
Tried doing it in the correct order and the text is displayed slanted after the first step of removing the selector and declarations for the unused fonts in the stylesheet. If I remove the selectors with Tools>Delete Unused Stylesheet Classes..., the text doesn't go slanted till after I delete the @font declarations which are left. I suspect it's a bug with Sigil and not the stylesheet, but here's the original stylesheet and what's left after using the "Delete Unused Stylesheet Classes" tool. The fonts to be removed are TwCenMT-Condensed and DefaultFont as Arnhem was uninstalled from my system before saving as epub with FR to try to prevent it from being embedded. |
||||
04-03-2013, 04:03 PM | #11 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Code:
.font2 { font-size:x-small; font-family: 'Futura Condensed Light', fantasy; }
the reader can't find the font (family): 'Futura Condensed Light' so it tries a fall back font, in this case a system generic; fantasy |
04-03-2013, 04:11 PM | #12 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
|
04-03-2013, 04:27 PM | #13 | |
Member
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
|
Quote:
|
|
04-03-2013, 04:32 PM | #14 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
04-03-2013, 04:42 PM | #15 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Remove the reference to the stylesheet. See if your problem persist. If not, create a new stylesheet and gradually add stuff from the old stylesheet. You would be able to see where it goes wrong.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil: How to highlight text ? | Frank's | Sigil | 65 | 12-27-2012 07:37 PM |
displaying foreign accented text | sovre | Sony Reader Dev Corner | 4 | 07-28-2011 05:35 AM |
problem displaying greek text in mobipocket for palm | sapient | Alternative Devices | 0 | 05-14-2011 11:39 PM |
Sigil displaying WYSIWYG oddly | moz | Sigil | 6 | 12-27-2009 05:07 PM |
I found way to vastly improve displaying of text! | Malder1 | iRex | 43 | 01-05-2007 05:32 PM |