mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
TerminalFont (Linux): check xterm.vt100.faceName for xterm font detection
This commit is contained in:
@@ -287,6 +287,14 @@ static void detectXterm(FFTerminalFontResult* terminalFont)
|
||||
{"xterm*faceSize:", &fontSize},
|
||||
});
|
||||
|
||||
if (fontName.length == 0)
|
||||
{
|
||||
ffParsePropFileHomeValues(".Xresources", 2, (FFpropquery[]) {
|
||||
{"xterm.vt100.faceName:", &fontName},
|
||||
{"xterm.vt100.faceSize:", &fontSize},
|
||||
});
|
||||
}
|
||||
|
||||
if (fontName.length == 0)
|
||||
ffStrbufAppendS(&fontName, "fixed");
|
||||
if (fontSize.length == 0)
|
||||
|
||||
Reference in New Issue
Block a user