Index: source/graphics/FontMetrics.cpp =================================================================== --- source/graphics/FontMetrics.cpp +++ source/graphics/FontMetrics.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2013 Wildfire Games. +/* Copyright (C) 2022 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -26,7 +26,8 @@ CFontMetrics::CFontMetrics(CStrIntern font) { - m_Font = g_Renderer.GetFontManager().LoadFont(font); + if (CRenderer::IsInitialised()) + m_Font = g_Renderer.GetFontManager().LoadFont(font); } int CFontMetrics::GetLineSpacing() const Index: source/ps/GameSetup/GameSetup.cpp =================================================================== --- source/ps/GameSetup/GameSetup.cpp +++ source/ps/GameSetup/GameSetup.cpp @@ -718,6 +718,8 @@ void InitNonVisual(const CmdLineArgs& args) { + g_GUI = new CGUIManager(); + Autostart(args); }