How can I get the name of the default font (and default monospace font), in the format:
Ubuntu Mono:size=12:antialias=false
I'm aware of fc-list
which gives me a list of all the fonts, but how can I know which one is the default font?
Use: I'm trying to launch xterm
like this: xterm -fa Ubuntu Mono:size=12:antialias=false
and auto-detect the default monospace font.
Use this, substituing
monospace-font-name
withfont-name
if you want the normal font instead: