Trigger fontconfig initialization early

Add a pango call to create the fontmap already in gtk_init.
This will let us hide the cost of FcInit() (which on font-heavy
systems can be ~100ms) in a thread, on the pango side.
This commit is contained in:
Matthias Clasen 2020-08-19 14:20:41 -04:00
parent 2031bcd388
commit a674832658

View File

@ -623,6 +623,9 @@ do_pre_parse_initialization (void)
slowdown = g_ascii_strtod (env_string, NULL); slowdown = g_ascii_strtod (env_string, NULL);
_gtk_set_slowdown (slowdown); _gtk_set_slowdown (slowdown);
} }
/* Trigger fontconfig initialization early */
pango_cairo_font_map_get_default ();
} }
static void static void