davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.28k stars 612 forks source link

DPI not handled for font setting #254

Closed blueyed closed 9 years ago

blueyed commented 9 years ago

For some reason the DPI on a new machine does not get picked up properly currently anymore, but if I remember correctly it worked in the beginning.

$ xdpyinfo | grep resolution
  resolution:    176x177 dots per inch
$ xrdb -q|grep -P '(rofi|dpi)'
Xft*dpi:    176
rofi.bg-active: #002b36
rofi.bg-urgent: #002b36
rofi.key-run:   mod1-F2
rofi.key-window:    mod1-F1

I am using xrandr -dpi 176 to configure this, and also have a xsettingsd instance, which serves Xft/DPI 180224 (176*1024).

Any idea what I am missing?

Ref: https://github.com/DaveDavenport/rofi/issues/171#issuecomment-105314810

DaveDavenport commented 9 years ago

You are not missing anything. Broke with the move to pangocairo. I am unsure how pango cairo determines dpi?

I added an override option to git, can you test?

rofi -dpi 177

or:

rofi.dpi: 177 

in Xresources

DaveDavenport commented 9 years ago

Please check if current git fixes it.

blueyed commented 9 years ago

rofi -dpi works, thanks!

For reference: https://github.com/DaveDavenport/rofi/commit/cb9dd606aa80387ccaf434f7bf575bf7018ef058

Could this default to Xft.dpi?

DaveDavenport commented 9 years ago

no. that would be incorrect. It will obey a generic dpi setting (that also xft should then pick up):

*.dpi: 189
github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.