![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 995
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
![]()
Hello folks!
I've got a rendering problem with some books with embedded fonts (I'm sending a sample book). It occurs on both Editor and Viewer. The problem is that all the fonts are displaying italicized. I've already checked and the fonts are ok. Also, they work as suposed in iBooks, ADE, Azardi, Readium and Edge, but fail in Calibre and Sigil. If I remove the fonts from the book, and keep the reference, then they work correctly on my computer (I have those fonts installed on my system). What is the problem here? Am I missing something? I doubt it since the books is rendering fine on all thoses apps, with Calibre and Sigil being the exceptions. In the image below, you can see the embedded version (on the left) and the other one with only referenced fonts (on the right). See that the left one shows the Heading and the first part of the text in a italicized manner. The right one renders correctly. ![]() ------------------- Details: Calibre Version: 3.26.1 OS: Windows 7 (and Windows 10 1803) Last edited by thiago.eec; 06-26-2018 at 08:57 AM. Reason: Add details |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,296
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 995
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Thanks for the reply. I've alredy tried everthing suggested on the other post. 1) I'm not using subsetteds fonts. 2) The fonts were downloaded form Google Fonts and used as they were, without any changes. 3) I've also tried to convert the fonts to OTF with FontForge, but the result was the same. 4) The fonts were not exported by Indesign. I actually added the fonts latter using Calibre Editor. 5) The fonts are not obfuscated. Also, I want to remember that the fonts themselft work fine when they are not embedded, and only referenced (but present on my system). Thus, it doesn't seem to be a problem with the font (like being corrupted or something). |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,296
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your attached EPUB renders correctly on my linux system, see attached.
It might be that Qt's windows font backed does not like those fonts (I'm guessing you are on windows). Probably best to use a different font. It will get fixed in calibre eventually when I move the viewer from Qt WebKit to WebEngine, but that's still some time away. |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 995
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Ok, Kovid.
Indeed I am on Windows (tried on 7 and 10). Well, at least I know there is nothing wrong with the book. Thanks for the support! ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
|
This is a problem on Windows and has nothing to do with Indesign. I see this in Sigil as well as Calibre. I have been using Sigil to create the books and all the text in either book view or preview are displayed as italics. The same book appears the same way in Calbre's book viewer and book editor. The book displays properly in ADE. The fonts are embedded.
The book displays properly with Linux. Whatever the cause, it is common to both Calibre and Sigil under Windows. Win 7 in my case. |
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
|
I can confirm that this happens with both the 32 and 64 bit versions of Win7.
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,296
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@grumbles: Did you miss post #4 in this thread?
|
![]() |
![]() |
![]() |
#9 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Quote:
If displays correctly, how came you to the idea of something wrong caused by Windows... I would say it's something wrong with calibre or sigil. What is strange is that the fonts are not replaced by italics, rather they are regular fonts displayed as slanted (see letter a or g). My take is that the fonts contain a wrong signalling in their header. |
|
![]() |
![]() |
![]() |
#10 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,126
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 995
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Like Kovid said, it was probably a bug with Qt Webkit.
The problem is gone now that Calibre uses WebEngine. Sigil also displays it correctly now, since it also moved to WebEngine. |
![]() |
![]() |
![]() |
#12 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Quote:
![]() And post #4 sends to another thread that has no further information. I usually read the thread before asking. This is the reason why I found this thread, because I've searched for an answer before posting. Since webkit, the alleged scrapegoat, is still used in some ereaders, like iPhones and Kindles, just asking people to update their Calibre (and maybe the computer, too, since newer versions of some libraries require a new windows to work, which may require a different hardware) won't do them too much justice. There must be a reason in the font itself why webkit thinks it's slanted. Google chrome, which apparently is based on webkit, has no issue to display it, correctly I mean. |
|
![]() |
![]() |
![]() |
#13 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,126
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
As for the newer hardware needed for some programs? Again not really relevant to this discussion. Chrome is no longer based on WebKit. Originally Chromium was using WebKit however due to compatibility and other issues, back in 2013 Google forked WebKit and created Blink. Other than Mozilla's Firefox using Gecko and Apple's Safari which uses WebKit2, most browsers are using Blink. As for issues with the internals of a font, that is, again, outside the control of Kovid and the other people involved with calibre. So unless you can post a screenshot from calibre 5.x showing the issue, this is not the place for that discussion. |
||
![]() |
![]() |
![]() |
#14 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 141
Karma: 2382428
Join Date: Feb 2013
Location: California
Device: OnePlus 6 phone, Kobo Clara HD, Libra H2O
|
Excuse me if I'm going further afield from this topic, but when I've seen this issue in the past, admittedly not specifically in Calibre, it was related to the order in which embedded font info was presented in css. If the italic style for a given font was listed before the normal one, I could get the inappropriate display of italicized text when it should have been normal. Reversing that order so that the @font-face selector with the font-style:normal is listed before font-style:italic often solved the problem. Whether that's the issue for @Ghitulescu or not, I can't say. But it may be worth a try.
Code:
/* incorrect order */ @font-face { font-family: "Janson Text LT Std"; font-style: italic; font-weight: normal; src: url(../font/JansonTextLTStd-Italic.otf); } @font-face { font-family: "Janson Text LT Std"; font-style: normal; font-weight: normal; src: url(../font/JansonTextLTStd-Roman.otf); } /* correct order */ @font-face { font-family: "Janson Text LT Std"; font-style: normal; font-weight: normal; src: url(../font/JansonTextLTStd-Roman.otf); } @font-face { font-family: "Janson Text LT Std"; font-style: italic; font-weight: normal; src: url(../font/JansonTextLTStd-Italic.otf); } |
![]() |
![]() |
![]() |
#15 | ||||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Quote:
Quote:
Quote:
However, wouldn't be nice that a free tool could do things a paysoftware can't? Like patching the font, the very same way it did subsetting or embedding or any other nice features... There is a lot of installed base of readers, and I see they do not sell that mush as before, for being superseded by tablets. People would not jump that easily in a new boat, just because. Quote:
But anyway, the fonts are not italic, but italicised (slanted) - italics use different graphs for a and g, slanted don't. Luckily, there are not many fonts that suffer - in the past 10 years or so I found only one, Gabriola, however, recently, I found a lot of them, mostly from Google and Microsoft new fonts, free to use in web or elsewhere. To finish, the conversion to PDF, even from calibre versions that are affected, renders a perfect display, as it should. |
||||
![]() |
![]() |
![]() |
Tags |
all italics, italicized text, italics, rendering issue |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
kepub Rendering Issue | JSWolf | Kobo Reader | 4 | 08-20-2016 10:28 AM |
Problem using the <svg> in Sigil. Kindle rendering issue? | rosshalde | Kindle Formats | 4 | 01-08-2015 01:25 PM |
Calibre 2.0 font rendering on Linux | Thunder007 | Calibre | 5 | 12-06-2014 08:00 PM |
How to solve EPUB3/EPUB2 rendering issue on Ipad | E-Books | ePub | 2 | 05-16-2013 07:07 AM |
Italicized Fonts not showing up!! | Ephraim | Sigil | 12 | 12-21-2010 01:44 PM |