mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[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:
parent
974342bbae
commit
676cc337dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user