Scaling JabRef for High DPI

JabRef is a nice utility to manage your paper references. Using it on a high resolution screen, however, can be tedious as it does not automatically adjust its scaling to the used DPI.

Below you can find an example for screen resultion of 3840 x 2160:

That doesn’t make working with the UI very comfortable. In order to fix this, you need to provide a scaling factor as a command line switch to the underlying java process. This can be done by adjusting the configuration files of Jabref.

If you installed the latest version for JabRef from the official downloads, then your installation will sit in /opt/jabref/ and you can find the configuration file under /opt/jabref/lib/app/JabRef.cfg.

Identify the section JavaOptions inside the configuration file and add a line that specified the uiScale paramter as -Dglass.gtk.uiScale=<your_scale_factor>.

Example:

[Application]
app.name=JabRef
app.version=5.0.50001
app.runtime=$ROOTDIR/lib/runtime
app.identifier=org.jabref
app.classpath=
app.mainmodule=org.jabref/org.jabref.JabRefLauncher

[JavaOptions]
--module-path
$ROOTDIR/lib/app/mods
-Dglass.gtk.uiScale=2

[ArgOptions]

Experiment with the uiScale options to find a value that matches your preferences. You can specify floats if you want to.

The resulting UI changes (after restarting the application) will provide a more pleasent experience with fonts and images: