mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Dont log an error when the default famil "monospace" is not found
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user