trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: June 2019

Re: [trinity-users] fonts super tiny in gtk apps

From: Felix Miata <mrmazda@...>
Date: Sat, 1 Jun 2019 23:41:29 -0400
Matt `da Wolf composed on 2019-06-01 22:45 (UTC-0400):

> I've checked all the font settings I can tihnk of. Everything is set to at
> least 28 or 32 as I am on a 4k screen.

> Everything works as expected in other desktop environments. This occurs on
> CentOS and Ubuntu, and I am at a loss to explain it.

That screenshot makes it unclear where your problem lies.

On the vttys (outside X/TDE):

On any Debian, including *buntu, change the size and/or face as desired in
/etc/default/console-setup, then run "dpkg-reconfigure console-setup" to enable
the change. How CentOS handles this I don't know, but may involve /etc/vconsole.conf.

Another way on either is to make the vttys use a lower resolution, e.g. 2560x1440
or 1920x1080. The kernel cmdline in Grub can be used to make this selection, for
each boot if desired.

GTK apps obey an XRDB knob named "Xft.dpi: integer" that can be set to any
arbitrary number in multiple places, among which ~/.Xresources. Xft.dpi is the
value controlled via the KControl Fonts setting "Force Fonts DPI", but it only
provides two selections, 96 and 120.

Use of Xft.dpi does not affect all X apps, but QT, GTK and TDE apps are among the
many that are.

Another option for GTK 3 only is in ~/.config/gtk-3.0/settings.ini, the value for
gtk-font-name=. Firefox has also its own settings via urlbar URL: about:config,
layout.css.devPixelsPerPx, where e.g. 1.20 is equivalent to 120 DPI, and 2.0=192
DPI, and another 1 for 1 setting, layout.css.dpi, that has a negative default to
inherit from environment.
-- 
Evolution as taught in public schools is religion, not science.

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

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