trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: June 2018

Re: [trinity-users] more on the font size / dpi issue

From: Felix Miata <mrmazda@...>
Date: Fri, 29 Jun 2018 14:02:55 -0400
dep composed on 2018-06-29 11:44 (UTC-0400):

> while continuine the seemingly unending search for a way to make the GPD
> Pocket work acceptably with TDE, i found a file, /etc/X11/Xsession.d/90-scale,
> whic seems to address the sacling issue, at least for fonts, on a range of
> desktops. here are its contents:

> gsettings set com.ubuntu.user-interface scale-factor "{'DSI-1': 14, 'DSI1': 14}"
> gsettings set org.gnome.desktop.interface scaling-factor 2
> gsettings set org.gnome.desktop.interface text-scaling-factor 1
> gsettings set org.cinnamon.desktop.interface scaling-factor 2
> gsettings set org.cinnamon.desktop.interface text-scaling-factor 1
> gsettings set org.mate.font-rendering dpi 168.0

Those are all GTK or GTK-based. TDE is QT-based.

> i wonder: is there a line for TDE that would work here to improve things?
> the scaling of the other desktops is just fine and orks well. alternatively> is there another window manager that might work with TDE and be more amenable to
> scaling?

Xorg forces 96 unless something is done to override it. The somethings include
Xft.dpi, DisplaySize, /usr/bin/X -dpi ###, and xrandr. The existence of multiple
methods of overriding the 96 forcing is a double-edged sword that causes
inconsistency among different toolkits and DEs.

QT obeys Xorg unless Xft.dpi overrides it. Set Xorg to the DPI you wish, and QT
apps can be expected to obey, as will many other non-GTK apps. As previously stated:

1-to make GTK3 apps accommodate, set Xft.dpi as desired. If left unset, most
GTK3 versions post-3.16 force it to 96. openSUSE Leap's GTK3 is an exception
(possibly TW too - I've not tested lately to see):
https://bugzilla.opensuse.org/show_bug.cgi?id=971885

2a-set DisplaySize in xorg.conf* to the dimensions that produce the desired DPI
http://fm.no-ip.com/Share/DisplaySize has a large number of pre-calculated examples

2b-or set desired DPI using xrandr in an Xorg startup script that runs before
TDM, using either --fbmm or --dpi.
http://fm.no-ip.com/Share/setup has a large number of examples I've tested here

3-Unset "Force fonts DPI" in KControl > Fonts, which if left set will override
Xft.dpi and Xorg to whichever of the limited selection 96 or 120 it offers.

AFAICT TDE's own icon sets are not designed to accommodate higher than modest
DPIs, good at 120, arguably OK at 144, lacking much above 144. Some of its icons
can be individually selected to do better at high values, but not all.

There is no single simple solution in QT environments for those who use GTK3
apps (e.g. Firefox since after around v54 or thereabouts).
-- 
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/