This commit is contained in:
Kovid Goyal 2020-03-09 21:10:04 +05:30
parent 8ae110691e
commit f74fb846e5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -86,7 +86,8 @@ def find_best_match(family: str, bold: bool = False, italic: bool = False) -> 'C
# fallback to Menlo
if q not in font_map['family_map']:
log_error('The font {} was not found, falling back to Menlo'.format(family))
return bi_match(font_map['family_map']['menlo'], bold, italic)
family = 'menlo'
return bi_match(font_map['family_map'][family], bold, italic)
def resolve_family(f: str, main_family: str, bold: bool = False, italic: bool = False) -> str: