Please change to `if legend_font is None:`