[macOS] Replace bogus font name from pango.

Pango on macOS reports ".AppleSystemUIFont" as the name for the
system-ui alias. This bogus name doesn't work so replace it with
the fallback Arial.
This commit is contained in:
John Ralls 2020-10-26 11:45:23 -07:00
parent 974342bbae
commit 676cc337dc

View File

@ -284,7 +284,8 @@ gnc_get_default_report_font_family(void)
pango_font_description_free (font_desc);
if (default_font_family == NULL)
if (default_font_family == NULL ||
g_str_has_prefix (default_font_family, ".AppleSystemUIFont"))
return g_strdup("Arial");
else
return default_font_family;