Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blurry font rendering hidpi #829

Closed
jarias opened this issue Aug 4, 2016 · 18 comments
Closed

Blurry font rendering hidpi #829

jarias opened this issue Aug 4, 2016 · 18 comments

Comments

@jarias
Copy link

jarias commented Aug 4, 2016

4k screen
Scale factor 2

Sway
screenshot-20160803-192814

i3
screenshot-20160803-193209

@cafehaine
Copy link

xwayland, swaybar and swaylock don't support native scaling at the moment. If you want a crisp font for your terminal, you can try and switch to a native wayland terminal, such as:
-weston-terminal
-germinal
-wlterm
-hawaii-terminal

Hope this helps!

@jarias
Copy link
Author

jarias commented Aug 4, 2016

@psgarsenal Thanks for the info, that was my guess, do you know if xwayland will have scaling support eventually that's a big show stopper for me at least, since I still use a lot of apps that don't support wayland yet. This is the only ticket I found https://bugs.freedesktop.org/show_bug.cgi?id=93315.

@cafehaine
Copy link

cafehaine commented Aug 4, 2016

It's on a per-toolkit / per-application basis, gtk can be scaled via an environment var for example.
This means that there is no global solution for now, but we might see one in the future
You can see more in the arch-wiki page about HiDPI:
https://wiki.archlinux.org/index.php/HiDPI

EDIT:
By the way, this is more of a wlc issue than sway, since the scaling on the wlc side

@stapelberg
Copy link

Do I need to do anything to make weston-terminal support hidpi?

With sway 0.9 and wlc 0.0.5, I added output * scale 2 to my ~/.config/sway/config, but all fonts are still blurry — it looks like the applications were rendered at low-dpi, then scaled up:

screenshot

For comparison, this is what I expect it to look like (from i3):

2016-09-01-075952_2559x1406_scrot

I tried creating ~/.config/weston.ini with the following contents:

[output]
name=eDP-1
scale=2

…but that didn’t change anything either.

@ddevault
Copy link
Contributor

ddevault commented Sep 1, 2016

weston-terminal might not support HiDPI. If you're looking for a term that does, try gnome-terminal.

@ddevault
Copy link
Contributor

ddevault commented Sep 1, 2016

Oh, and the window decorations and bar are known limitations in sway's HiDPI support. See #797

@stapelberg
Copy link

Using gnome-terminal indeed works.

I was originally trying weston-terminal because it was recommended in #829 (comment)

@ddevault
Copy link
Contributor

ddevault commented Sep 3, 2016

Ah. I wouldn't suggest weston-terminal for any purpose.

@cafehaine
Copy link

To be honest I did not test the scaling function, I just thought most native wayland applications supported scaling, which proves to be wrong

@ddevault
Copy link
Contributor

ddevault commented Sep 5, 2016

swaybar, swaybg, and swaylock all support hidpi as of 0913eff...af44154

@stapelberg
Copy link

I can confirm that swaybar is now hidpi-compatible. Can we get window title bars next please? :)

2016-09-07-084513_swaygrab

@ddevault
Copy link
Contributor

ddevault commented Sep 7, 2016

That's what I'd like to look into next. I actually missed a spot with swaybar I need to fix, though.

@ddevault
Copy link
Contributor

#797

@ghost
Copy link

ghost commented Sep 3, 2017

How can I set Sway to hidpi mode? I am currently using on a 4k display and its pretty blurry.

@ddevault
Copy link
Contributor

ddevault commented Sep 3, 2017

RTFM

@danielcb
Copy link

danielcb commented Mar 1, 2018

@stapelberg did you get rxvt to work without blurry fonts by any chance? I've everything setup and working quite well. Gnome-terminal is as sharp as it can be (hidpi, scale 2), but I can't get rxvt-unicode to render sharp fonts (Xft.dpi 282, antialias and the like are set already).

Edit:
Okay, after reading again, probably an Xwayland/scaling issue? mh.

@kaueraal
Copy link

kaueraal commented Apr 4, 2018

@danielcb Yes, that's an Xwayland issue. This is somewhat tracked in #1047 .

@Inc0n

This comment has been minimized.

@swaywm swaywm locked as off-topic and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

7 participants