Rofi: DPI not handled for font setting

Created on 30 Oct 2015  路  5Comments  路  Source: davatorium/rofi

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

Question (Please follow the guidelines)

Most helpful comment

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

All 5 comments

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

Please check if current git fixes it.

rofi -dpi works, thanks!

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

Could this default to Xft.dpi?

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

*.dpi: 189

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

icf20 picture icf20  路  4Comments

vktec picture vktec  路  4Comments

herrsimon picture herrsimon  路  5Comments

benjumanji picture benjumanji  路  5Comments

atomheartother picture atomheartother  路  5Comments