how to set font in xterm on #openbsd? for example, i want

  • facename spleen-6
  • scaled up to 18px
  • no antialiasing
i've tried a few things in my .Xdefaults, but nothing works as expected

@hi This .Xdefaults works for me (I have poor eyesight, so adjust as needed):

#ifdef HIDPI
XTerm*faceName: spleen:pixelsize=64:antialias=false
XLock*font: spleen:pixelsize=64:antialias=false
#else
XTerm*faceName: spleen:pixelsize=32:antialias=false
XLock*font: spleen:pixelsize=32:antialias=false
#endif

I was wondering if this can be specified on the command line in order to test how it looks before putting it in .Xdefaults

@kasperd It can with the -fa and -fn options for xterm.

http://man.openbsd.org/xterm

xterm(1) - OpenBSD manual pages