Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Keepass2: fix puffy ui and fonts

It feels like the tech I wish to use wants to fight me. It's getting frustrating. (Or maybe I'm just getting old.)

I did a medium-dive into DPI on Linux again, because the Mono-based application keepass2 wanted to look really puffy and bloated. I have a 1920x1080 display, with no special scaling at all. I know I've had to tell QT applications what scaling to use, because they apparently guess wrong on basic 1920x1080.

Wrong view (bloated):

Right view (not bloated):

This time, for some dumb reason KeePass wanted everything to look like it's scaled up kinda big and puffy. The solution to this is to uncheck the setting "Force usage of system font (Unix only)."

The setting:

I don't know why it sometimes flips. Maybe it's like that other setting that magically changes.

Aborted research

GDK_SCALE=1 GDK_DPI_SCALE=1
xrdb -override <<< "Xft.dpi:96"
xrdb -query
MONO_MWF_NATIVE=1
MONO_OPTIONS="--debug"

Unhelpful references

  1. HiDPI - ArchWiki#Mono applications
  2. MonitorDPI - Debian Wiki
  3. KeePass 2.28 released - KeePass

Comments