How to change font size when using SAL_USE_VCLPLUGIN=gen?

Hi, all

I need to use SAL_USE_VCLPLUGIN=gen so I can read KeyID tags.

I want to change the font size for LibreOfficeDev when using SAL_USE_VCLPLUGIN=gen. My display has a high dpi and the regular font is too small.

I already tried in ~/.Xresources (each line on a different attempt, not all at once):

  • LibreOfficeDev.libreofficedev.font: DejaVu Sans Mono 16
  • LibreOfficeDev.libreofficedev-startcenter.font: DejaVu Sans Mono 16
  • LibreOfficeDev*font: DejaVu Sans Mono 16
  • libreofficedev*.font: DejaVu Sans Mono 16

…and after merging, as in

xrdb ~/.Xresources

…I still have tiny little font.

(I used xprop to find out the WM_NAME and WM_CLASS.)

Is there any other way to manipulate the font, such as environmental command-line variables? Or where are the right attributes to use?

I’m on Linux Manjaro.

Well, I finally found out.

It’s better to start the program from the command-line, using some environmental variables:

SAL_USE_VCLPLUGIN=gen SAL_FORCEDPI=144 /opt/libreofficedev7.6/program/soffice

NOTE: The wiki page (former link) indicates that SAL_FORCEDPI is a variable to use only when gtk3 or qt5/kf5 VCL plugins are used, but it perfectly worked with plugin=gen(eric).

You can experiment with DPI value.