Page 1 of 1

Ignore Windows text size setting

Posted: Mon Oct 21, 2024 1:23 pm
by thefunkyjoint
Hello,

Windows 10 / 11 has an option where the user can set the text size, as shown on the link below :

https://support.microsoft.com/en-us/windows/make-text-and-apps-bigger-c3095a80-6edd-4779-9282-623c4d721d64

Problem is, when the user set the text size bigger than 100%, all pages in TChromium will show with its layout altered, looks like the CSS of the pages are affected.

Is there a way to CEF4Delphi ignore this Windows option and show the 'regular' page as it shows with Windows text size set to 100% ? :?

Re: Ignore Windows text size setting

Posted: Tue Oct 22, 2024 2:17 pm
by salvadordf
Hi,

Apparently, that feature can only be disabled when you manually modify Chromium's source code :( :
https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=17733

Re: Ignore Windows text size setting

Posted: Wed Oct 23, 2024 11:59 am
by thefunkyjoint
Oh that's sad :(

Anyway, I'd like to try this setting , may it helps :

--force-device-scale-factor=1

Is it possible to turn it on for CEF4Delphi ?

Re: Ignore Windows text size setting

Posted: Wed Oct 23, 2024 12:47 pm
by salvadordf
GlobalCEFApp.ForcedDeviceScaleFactor is used to add that command line switch but the scale factor affects images and text.

It's not the same as the font size in Windows.