From ff89f5187d718ab06cc1b2ac4841cdf08588a9c1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 May 2024 13:02:03 +0530 Subject: [PATCH] Dont log an error when the default famil "monospace" is not found --- kitty/fonts/core_text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/fonts/core_text.py b/kitty/fonts/core_text.py index 8cf20d7bf..e749d8851 100644 --- a/kitty/fonts/core_text.py +++ b/kitty/fonts/core_text.py @@ -195,7 +195,8 @@ def find_best_match( # Let CoreText choose the font if the family exists, otherwise # fallback to Menlo if q not in font_map['family_map']: - log_error(f'The font {family} was not found, falling back to Menlo') + if family != "monospace": + log_error(f'The font {family} was not found, falling back to Menlo') q = 'menlo' candidates = scorer.sorted_candidates(font_map['family_map'][q]) return candidates[0]