You are not logged in.

#1 2018-12-05 16:48

jschall
Member
Registered: 2018-09-16
Posts: 49

[SOLVED] How to increase font size - Pinebook 1080p/Openbox

I'd like to increase the default font size on my Pinebook 1080P running Openbox.

If I try with xrandr, I get this error:

adminq@pinebook1080p:~$ sudo xrandr --dpi 96
[sudo] password for adminq:
xrandr: Failed to get size of gamma for output default
adminq@pinebook1080p:~$

Is there a way?

Last edited by jschall (2018-12-08 23:07)

Offline

#2 2018-12-05 18:16

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,393
Website

Re: [SOLVED] How to increase font size - Pinebook 1080p/Openbox

I think this post might help.

Offline

#3 2018-12-05 20:27

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 1,993
Website

Re: [SOLVED] How to increase font size - Pinebook 1080p/Openbox

It's recommended to change fonts size for HiDPI screens globally, see example below to set 144 dpi:
$ sudo sh /usr/share/apps/q4os_system/bin/dpi_set.sh 144
You can also change icons sizes, you will find that in Control panel > Appearance a themes > Icons > Advanced tab

Offline

#4 2018-12-06 14:03

jschall
Member
Registered: 2018-09-16
Posts: 49

Re: [SOLVED] How to increase font size - Pinebook 1080p/Openbox

Thank you for that, @q4osteam.

adminq@pinebook1080p:~$ sudo sh /usr/share/apps/q4os_system/bin/dpi_set.sh 144
[sudo] password for adminq:
old args: -dpi 150 -nolisten tcp
new args: -dpi 144 -nolisten tcp
adminq@pinebook1080p:~$

Does that look right?

I rebooted. No apparent difference.

Should the dpi argument be less or more, to say, double the font size?

Last edited by jschall (2018-12-06 14:54)

Offline

#5 2018-12-07 08:35

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 1,993
Website

Re: [SOLVED] How to increase font size - Pinebook 1080p/Openbox

DPI value is proportional to font size, higher value increases the size. Nonetheless the command mentioned "dpi_set.sh" is applicable for Trinity desktop only.

Offline

#6 2018-12-07 14:03

jschall
Member
Registered: 2018-09-16
Posts: 49

Re: [SOLVED] How to increase font size - Pinebook 1080p/Openbox

So, how can I increase the font size while running Openbox?

Offline

#7 2018-12-08 23:06

jschall
Member
Registered: 2018-09-16
Posts: 49

Re: [SOLVED] How to increase font size - Pinebook 1080p/Openbox

I found a solution.

I edited the file ~/.X resources, un-commenting the line !Xft: 96 and changing to 144:

adminq@pinebook1080p:~$ cat .Xresources
! render setting for cairo -> pango -> gtk
Xft.dpi: 144
! Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
adminq@pinebook1080p:~$

Offline

Board footer

Powered by FluxBB