Issue #2826 - Set up fontconfig on XRE startup (GTK only)

This commit is contained in:
Francis Dominic Fajardo 2025-07-19 21:25:44 +08:00 committed by roytam1
commit b992da05eb

View file

@ -3164,6 +3164,9 @@ XREMain::XRE_mainStartup(bool* aExitFlag)
#endif
#if defined(MOZ_WIDGET_GTK)
// Set up fontconfig.
FcInit();
// setup for private colormap. Ideally we'd like to do this
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running