1 parent 84bc024 commit a226591Copy full SHA for a226591
1 file changed
font_collector/__main__.py
@@ -72,7 +72,7 @@ def main() -> None:
72
elif font_result.mismatch_bold:
73
log_msg = f"Mismatched weight for '{style.fontname}' (requested weight {style.weight}-{(font_weight_to_name(style.weight))}, got {font_result.font_face.weight}-{(font_weight_to_name(font_result.font_face.weight))})."
74
if font_result.mismatch_italic:
75
- log_msg = f"Mismatched italic for '{style.fontname}' (requested {'non-' if style.italic else ''}italic, got {'non-' if font_result.font_face.is_italic else ''}italic)."
+ log_msg = f"Mismatched italic for '{style.fontname}' (requested {'' if style.italic else 'non-'}italic, got {'' if font_result.font_face.is_italic else 'non-'}italic)."
76
77
if log_msg:
78
_logger.warning(
0 commit comments