Thanks for the tips!
The installation for Ubuntu I was using had no ~/.config/swi-prolog/xpce/Defauts but emacs/0 created it as Jan said.
The new Defaults had all the display.system_fonts
configurations commented out with !, which I deleted …
Upon restarting swipl, the system fonts were loaded, solving the spacing problem.
It works
PS: The display.system_fonts
part:
display.system_fonts: [ normal := font(helvetica, roman, 12),
bold := font(helvetica, bold, 12),
italic := font(helvetica, oblique, 12),
small := font(helvetica, roman, 10),
large := font(helvetica, roman, 14),
boldlarge := font(helvetica, bold, 14),
huge := font(helvetica, roman, 18),
boldhuge := font(helvetica, bold, 18),
fixed := font(roman, roman, 13),
tt := font(roman, roman, 13),
boldtt := font(helvetica, roman, 13),
symbol := font(symbol, roman, 12)
]