![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Kobo Glo HD
|
A curious font issue
Hello, ( Newbie alert! )
![]() I was trying to read an epub file in my Kobo, which is in Malayalam language. The "chillu" letters (That's what those letters are called in Malayalam) were not rendering properly. Then I load the epub in Calibre and ended up in this interesting situation. Please see the attached image. I have marked the respective words in red boxes. Why the letters are rendered different in the xhtml viewer and preview panel? The rendering is perfect in the xhtml viewer, but wrong in file preview. Is there some way to rectify this? BTW, I am using Calibre (v3.29) installed form official repository in Fedora 29. Any advice/suggestions are greatly appreciated. Thank you. Last edited by Toolpost; 04-01-2019 at 09:57 AM. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,055
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I suspect the (embedded) font has glyph issues. Try embedding another font.
Code view, is again, a different font. I think this one is from your System (and this one is usually Mono-spaced, favored by coders). |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FWIW: the font for the CodeView (CV) panels are set in Edit->Preferences->Editor settings, the font for the Preview (PV) panel is set in Edit->Preferences->Editor settings. They can differ e.g. I use Consolas for CV and Liberation variants for PV
IIRC: the calibre viewer will use the embedded fonts, if they exist; and if they don't, the fonts set in the viewer's Preferences->General->Font options settings are used. BR |
![]() |
![]() |
![]() |
#4 | ||
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Kobo Glo HD
|
Quote:
Quote:
On the other hand, I am able to open and read the epub in Okular and it renders everything perfectly. Last edited by Toolpost; 04-02-2019 at 01:22 AM. Reason: Forgot attachment |
||
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's likely Qt WebKit (the component used to render the preview panel) does not like that font. This will be fixed in calibre 4 when it migrates to usin a different component. In the meantime, try using a different font for the preview panel, or live with it.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Kobo Glo HD
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Toolpost - did you try the Sigil editor, I think it uses a later version of the Qt libraries.
BR |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#9 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
sigil uses the the same qtwebkit calibre does -- even though the version of qt is newer qt webkit tself is no longer maintained.
|
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 5706256
Join Date: Nov 2009
Device: many
|
FWIW, qtwebkit does get some maintenance by Annulen. Bugs reported there are still being responded to. We now build our webkit based on annulen's version 5.212 with the following patches:
See qtwebkit _*.patch at: https://github.com/Sigil-Ebook/Sigil/tree/master/docs None of these effect fonts particularly, but Qt (not webkit) has serious issues with fonts especially on Windows machines due to use of the OS2 font tables incorrectly: See: https://bugreports.qt.io/browse/QTBUG-73660 and the following font umbrella issue: https://bugreports.qt.io/browse/QTBUG-74860 So the bug could well be in Qt itself versus QtWebkit. |
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, the bug is likely in Qt. Qt WebKit uses Qt for its fonts. Qt WebEngine does not (it uses chromium's font backend).
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible Font issue? | producer | Kobo Reader | 2 | 03-14-2018 07:35 PM |
Possible Font issue? | jerryleejr | Kobo Reader | 8 | 09-04-2016 12:49 PM |
Glo Font issue | Lily7 | Kobo Reader | 5 | 05-04-2013 09:56 PM |
Need help with font issue please | MattI | ePub | 4 | 01-26-2011 07:12 PM |
font issue | msl | Calibre | 5 | 12-13-2008 01:23 PM |