03-16-2024, 02:51 PM | #61 |
Grand Sorcerer
Posts: 27,605
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I say we add the nodirectwrite platform argument like we do altgr (except with no user preference involved) to force the gdi font backend for now. We can revisit removing it when the DirectWrite backend proves to be more complete.
If we don't do something, we'll be chasing mystery windows crashes as more users encounter embedded woff fonts on scaled displays. And I'm for the path of least Qt patching. EDIT: for the record... adding the "fontengine=freetype" platform option seems to accomplish the same thing as nodirectwrite. It also eliminates any of the QWindowsFontDatabase::fontEngine warnings encountered when using nodirectwrite. Last edited by DiapDealer; 03-16-2024 at 03:22 PM. |
03-16-2024, 03:19 PM | #62 |
Sigil Developer
Posts: 7,734
Karma: 5446592
Join Date: Nov 2009
Device: many
|
Sounds like a good plan to me. Will you push that change to master?
|
03-16-2024, 03:33 PM | #63 |
Grand Sorcerer
Posts: 27,605
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sure. Do we need to limit this to a certain Qt version level? Also... do you see any benefit for "nodirectwrite" over "fontengine=freetype"?
|
03-16-2024, 03:39 PM | #64 |
Sigil Developer
Posts: 7,734
Karma: 5446592
Join Date: Nov 2009
Device: many
|
nodirectwrite is supposed to fall back to the gdi backend. Whereas all of the unix based Qts use the freetype one.
I am just not sure how well tested the freetype backend is on Windows. As for limiting to Qt versions, the bug has existed since 6.3 timeframes and even possibly before that. Perhaps limit the change to all Qt6 versions for now, maybe up to 6.8.0? We can then revist that for any follow-on releases. |
03-16-2024, 03:51 PM | #65 |
Grand Sorcerer
Posts: 27,605
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sounds good. I'll go with nodirectwrite between 6.0 and 6.8.
|
03-16-2024, 06:05 PM | #66 |
Grand Sorcerer
Posts: 27,605
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
If anyone who's been able to reproduce the issue would like to test a version of Sigil that includes a workaround, it can be downloaded from here:
https://github.com/dougmassay/win-qt...-x64-Setup.exe |
03-16-2024, 06:52 PM | #67 |
Grand Sorcerer
Posts: 5,607
Karma: 23185369
Join Date: Dec 2010
Device: Kindle PW2
|
|
03-16-2024, 07:00 PM | #68 |
Sigil Developer
Posts: 7,734
Karma: 5446592
Join Date: Nov 2009
Device: many
|
Just in case here is an alternative link from my own github site to DiapDealer's test build :
https://github.com/kevinhendricks/Bu...nMac/releases/ Download: Sigil-2.1.0-Windows-x64-Setup.exe |
03-16-2024, 07:37 PM | #69 |
Resident Curmudgeon
Posts: 74,608
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
My Windows 11 is set to a scaling of 125%. But I also have QT_ENABLE_HIGHDPI_SCALING=0 set and the test ePub loads no problem.
|
03-16-2024, 09:15 PM | #70 |
Bibliophagist
Posts: 36,697
Karma: 146499190
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Tested in on a laptop with the scaling set to 125% and Sigil 2.0.2 crashed, Sigil 2.1.0 did not.
|
03-16-2024, 09:20 PM | #71 |
Grand Sorcerer
Posts: 27,605
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Great. Thanks. And thanks for the tip about checking the scaling!
|
03-16-2024, 10:51 PM | #72 |
null operator (he/him)
Posts: 20,673
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
03-16-2024, 11:13 PM | #73 |
Grand Sorcerer
Posts: 27,605
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
03-17-2024, 12:14 AM | #74 |
null operator (he/him)
Posts: 20,673
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
03-17-2024, 07:09 AM | #75 |
Grand Sorcerer
Posts: 27,605
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
|
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 |