Author Topic: DPI / Scaling / Resolution of Third party Apps  (Read 295 times)

TheNetEffect

  • Newbie
  • *
  • Posts: 21
    • View Profile
DPI / Scaling / Resolution of Third party Apps
« on: March 02, 2021, 09:41:19 am »
I've installed Linux Gebian on the Cosmo and have everything setup nicely.

When installing third party Apps, such as Firefox, they are not honouring the  Font and sizing settings and appear incredibly small, too small to actually use.

Increasing the font size seems only to increase the font size on the OS and Apps that are pre-installed.

Is there a solution to this ?

TheNetEffect

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: DPI / Scaling / Resolution of Third party Apps
« Reply #1 on: March 02, 2021, 12:31:32 pm »
OK, I answered my own question on this for at least the Chromium and Firefox browsers:

Chromium - edit the application shortcut and add:

--force-device-scale-factor=2

Now when you start Chromium it will size correctly

Firefox ESR



Step1:

- Go to about:config in the Firefox URL Bar
- Find layout.css.devPixelsPerPx - it normally has a setting of  -1.0 - change it to 2



Step 2:

- Create a new folder in the profile directory called 'chrome' (you can find your profile directory by typing about:support in the firefox url bar)
- Go to that directory in the terminal and use you favourite command line editing tool to create a file called userChrome.css
- When editing that file add the following:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */

* {font-size: 18px !important;
}


- Save the file and exit from editing
- Go back to Firefox and back to about:config
- In the search box above the list, type or paste userprof
- Double-click the toolkit.legacyUserProfileCustomizations.stylesheets preference to switch the value from false to true.


Close Firefox and restart and it should now be sized correctly.




TheNetEffect

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: DPI / Scaling / Resolution of Third party Apps
« Reply #2 on: March 24, 2021, 02:16:59 pm »
There is another trick for the scaling of general Apps.

Navigate to System Settings->Fonts

Now change the DPI from the default of 96 to 192.

You will see no visible difference but this is the DPI that many Apps look for to auto-reconfigure themselves for high DPI and you will see that some of those tiny apps whose menu's you could not see will now work fine on the Cosmo.

LinuxGuy

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: DPI / Scaling / Resolution of Third party Apps
« Reply #3 on: April 01, 2021, 01:27:30 am »
Thanks a lot!!!! using chromium with 1.5 works perfect!