From 0a807ac1a3a7863be7a7184a323556e1e2eab73f Mon Sep 17 00:00:00 2001 From: Carter Li Date: Wed, 1 Oct 2025 08:08:49 +0800 Subject: [PATCH] TerminalFont (Linux): fixes default font size for ghostty Fixes #1986 --- src/detection/terminalfont/terminalfont.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/detection/terminalfont/terminalfont.c b/src/detection/terminalfont/terminalfont.c index a4468b9c1..19df07b02 100644 --- a/src/detection/terminalfont/terminalfont.c +++ b/src/detection/terminalfont/terminalfont.c @@ -105,7 +105,13 @@ static void detectGhostty(const FFstrbuf* exe, FFTerminalFontResult* terminalFon } if (fontSize.length == 0) { - ffStrbufAppendS(&fontSize, "13"); + ffStrbufAppendS(&fontSize, + #if __APPLE__ + "13" + #else + "12" + #endif + ); FF_DEBUG("using default size='%s'", fontSize.chars); }