public static void ReloadFontsFromPath() { FontServer.instance.ResetCollection(); FontServer.instance.RegisterFont(DEFAULT_FONT_KEY, KlyteResourceLoader.LoadResourceData("UI.DefaultFont.SourceSansPro-Regular.ttf"), WTSController.DefaultTextureSizeFont); foreach (string fontFile in Directory.GetFiles(FontFilesPath, "*.ttf")) { FontServer.instance.RegisterFont(Path.GetFileNameWithoutExtension(fontFile), File.ReadAllBytes(fontFile), WTSController.DefaultTextureSizeFont); } WriteTheSignsMod.Controller?.EventFontsReloadedFromFolder?.Invoke(); }