Fix #2421
This commit is contained in:
parent
8ae110691e
commit
f74fb846e5
@ -86,7 +86,8 @@ def find_best_match(family: str, bold: bool = False, italic: bool = False) -> 'C
|
|||||||
# fallback to Menlo
|
# fallback to Menlo
|
||||||
if q not in font_map['family_map']:
|
if q not in font_map['family_map']:
|
||||||
log_error('The font {} was not found, falling back to Menlo'.format(family))
|
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:
|
def resolve_family(f: str, main_family: str, bold: bool = False, italic: bool = False) -> str:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user