9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.62k stars 320 forks source link

devdraw: X11 HiDPI support #100

Open sindex opened 7 years ago

sindex commented 7 years ago

On MacOS there is HiDPI support but not on X11.

This is how acme currently looks on a HiDPI display. acmehidpi

lvets commented 6 years ago

I have the same problem on X11.

gdiazlo commented 6 years ago

Please test this PR https://github.com/9fans/plan9port/pull/178 to see if it works for you. It did for me.

dzklaim commented 6 years ago

as a quickfix you can try to change line 15 of src/cmd/devdraw/devdraw.c

int displaydpi = 100

to something above 200

PR #178 does not work for me.

lvets commented 5 years ago

PR #178 does not work for me.

Same. Changing displaydpi works fine.

gdiazlo commented 5 years ago

Did you updated your $HOME/.Xresources file? I have mine with this line Xft.dpi: 200

Also your xinitrc should load the Xresources. You can update the current session using the command xrdb -merge $HOME/.Xresources

dzklaim commented 4 years ago

it is working for me now!

tcolgate commented 3 years ago

is there a way to set the dpi of the actual widget drawing? Changing Xft.dpi works well for font rendering, but it doesn't seem to change the dpi for , e.g., acme's tag bar. So if I select a large font, it ends up just getting clipped. Narrowed my problem down. /some/ fonts get clipped at larger sizes. (GoMedium and GoMono are fine, GoRegular gets clipped)

pedramos commented 2 years ago

@tcolgate , I believe the solution for that is here #429