Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Ignore Windows text size setting

Post Reply
thefunkyjoint
Posts: 491
Joined: Thu Aug 10, 2017 12:40 pm

Ignore Windows text size setting

Post 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% ? :?
User avatar
salvadordf
Posts: 4378
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Ignore Windows text size setting

Post 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
thefunkyjoint
Posts: 491
Joined: Thu Aug 10, 2017 12:40 pm

Re: Ignore Windows text size setting

Post 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 ?
User avatar
salvadordf
Posts: 4378
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Ignore Windows text size setting

Post 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.
Post Reply