You are not logged in.

#1 2021-04-23 21:12:41

tuttiarch
Member
Registered: 2015-01-31
Posts: 17

Wayland (Sway) font scaling (not complete GUI)

Hello,

I bought a new PC and thought I might just switch to Wayland and Sway (coming from i3). However, my 4K monitor setup is causing me some trouble. From both my work laptop running MS Windows and my previous PC I am used to a 1.25 (125%) scaling which is working perfectly (Windows and Linux / X Server). Unfortunately, with the Sway config

output * scale 1.25

I get really blurry looking output. Only if I set the scale value to 2 I get crisp looking graphics but everything is so huge that I can barely fit two terminals split horizontally without line wrapping (on a 27" monitor). Right now with Wayland, or at least with Sway, I have the following results:

  1. scale=1: Fonts are way too small and barely readable

  2. scale=1.25: Fonts are properly sized but font is blurry

  3. scale=2: Fonts are sharp but way too large

Is there any way to scale only fonts properly as I assume it is done with the X server? There I just had to set

Xft.dpi: 120

in ~/.Xresources and it was pretty much working as expected. It feels like Sway/Wayland is scaling the output on a pixel basis. I would rather expect it to do something so that applications use larger font and icon sizes.

Offline

Board footer

Powered by FluxBB