Absurdly small font in KDE app

I tried to run kdePackages.okular in a nix shell. The fonts and icons are absurdly small. For many other apps I can fix this with xrandr --dpi ..., but it seems to have no effect here.

I run Xmonad, without any desktop environment.

What can I do to make ocular use sensible font/icon sizes?

i think qt6 apps work differently with scaling settings, especially on x11 - i had the same problem coming from wayland :slight_smile: . have you also tried libsForQt5.okular? in short, check this out (link). i have a few things you could try out:

services.xserver.dpi = 150; # multiples of 96, where 192 is 200%, but 150 is a nice start

or

environment.variables = { 
  QT_FONT_DPI = "2"; # legacy
  # or
  QT_SCALE_FACTOR = "2";
  # or
  QT_USE_PHYSICAL_DPI = "1"; # because qt uses logical by default
};

this is what i always had (commented out) in my modular config, just in case… :wink: