03-16-2024, 12:15 PM | #46 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Does it happen under Linux? I tested loading and opening DNSB's test epub 20 times in a row on macOS and it never had a problem.
If we can recreate it under Linux, we may be able to track it down easier. |
03-16-2024, 12:20 PM | #47 | |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Unfortunately, telling users to change to 100% scaling isn't really a viable workaround. It'd be easier to tell them to ditch the woff fonts! I don't really know where to begin. Last edited by DiapDealer; 03-16-2024 at 12:23 PM. |
|
Advert | |
|
03-16-2024, 12:33 PM | #48 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Does this bug recreate with Qt 6.6.2 as well? Perhaps it is fixed there (he said hopefully!).
|
03-16-2024, 12:37 PM | #49 | |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I also tested on Linux and can't recreate the problem there. I've got a highdpi monitor for my linux box that scales the display to 175%. |
|
03-16-2024, 12:50 PM | #50 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Well that sucks! The number of Windows font handling bugs listed in the qtbug database is quite large with many closed automatically after a time with no fixes.
There was one font bug related to dpi scaling that may be related but they found a workaround by disableing Windows directwrite as follows: application.exe -platform windows:nodirectwrite Does adding that prevent the crash? If not, I am out of ideas. |
Advert | |
|
03-16-2024, 12:53 PM | #51 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
If we can track down where exactly it is crashing, we can probably find a patch workaround.
There was a nice testcase here that might be useful if it can recreate the crash: https://bugreports.qt.io/browse/QTBUG-108204 |
03-16-2024, 01:00 PM | #52 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
I wonder if this is a graphics driver bug that tickles a Qt bug. There were a number of font handling related bug reports in Qt all for a single type of graphics card.
Could everyone experiencing these issues with woff fonts by using the same graphics card company? |
03-16-2024, 01:20 PM | #53 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
And here is the only recent Windows specific font change that made it into dev head that is not in Qt 6.6.2 as far as I can tell.
https://github.com/qt/qtbase/commit/...827305ef4a7040 So there are different font backends on Windows we can try to see if any properly handle the woff fonts when dpi scaling is not 100% They are listed in the commit comments. |
03-16-2024, 01:34 PM | #54 | |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
Debug: Current windows platform args: QList("nomousefromtouch", "nodirectwrite") Debug: New windows platform args: "windows:nomousefromtouch:nodirectwrite:altgr" Code:
Warning: QWindowsFontDatabase::fontEngine: Can't change family name of font |
|
03-16-2024, 01:55 PM | #55 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
I was able to reproduce this with Windows 11 and the Gentium Plus 6.200 fonts on my laptop.
https://software.sil.org/gentium/download/ Here are the steps:
Last edited by Doitsu; 03-16-2024 at 02:11 PM. |
03-16-2024, 02:00 PM | #56 |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I just noticed this, but I don't think it's the case. Mine is an integrated intel graphics card, and the user who reported the github issue appears to have an nvidia card (according to the machine specs in the link they included).
|
03-16-2024, 02:14 PM | #57 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Processor AMD A4-9125 RADEON R3, 4 COMPUTE CORES 2C+2G, 2300 Mhz, 2 Core(s), 2 Logical Processor(s) |
|
03-16-2024, 02:24 PM | #58 |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Did you check to see if adding Kevin's above platform argument works with scales other than 100%?
application.exe -platform windows:nodirectwrite You can also set the QT_QPA_PLATFORM environment variable to windows:nodirectwrite |
03-16-2024, 02:37 PM | #59 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
FWIW, Qt 6 dev and 6.8 will default to always using the DirectWrite backend for fonts on Windows. But DirectWrite backend support is incomplete as of Qt 6.6.x as it is missing the following changes that dev provides:
https://github.com/qt/qtbase/commit/...9280ae524482b7 So the only thing that will workaround this issue to to force fallback to the gdi font backend on Windows. Alternatively we could try to backport the directwrite backend fixes from dev back to Qt 6.6.2 and hope that does the trick as it completes support for more font types. I have no idea if that is doable or not. |
03-16-2024, 02:46 PM | #60 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Libra 2 Installing Custom Fonts | BookCat | Kobo Reader | 41 | 04-05-2022 09:01 AM |
Installing fonts | Pajamaman | KOReader | 6 | 09-05-2020 02:06 PM |
Installing Tamil Fonts on SnPRS - T2 | Raman | Sony Reader | 3 | 01-12-2013 11:54 AM |
Installing Tamil Fonts on Kindle 4.1.0 | sriramvenkatesan | Amazon Kindle | 14 | 10-22-2012 10:45 AM |
PRS-T1 Still have a problem with installing fonts in my device | hamedavatar | Sony Reader | 5 | 06-21-2012 05:46 PM |