diff --git a/Source/Plugins/BuilderModes/General/Association.cs b/Source/Plugins/BuilderModes/General/Association.cs index 5db2f638d228c8cfee2a84f8d42333e9d75a8c68..c33d2ffc0576046255c3dccab31f6965d9ba4bf6 100755 --- a/Source/Plugins/BuilderModes/General/Association.cs +++ b/Source/Plugins/BuilderModes/General/Association.cs @@ -70,7 +70,14 @@ namespace CodeImp.DoomBuilder.BuilderModes linedefs = new List<Linedef>(); eventlines = new Dictionary<string, List<Line3D>>(); - font = new Font(new FontFamily(General.Settings.TextLabelFontName), General.Settings.TextLabelFontSize, (General.Settings.TextLabelFontBold ? FontStyle.Bold : FontStyle.Regular)); + try + { + font = new Font(new FontFamily(General.Settings.TextLabelFontName), General.Settings.TextLabelFontSize, (General.Settings.TextLabelFontBold ? FontStyle.Bold : FontStyle.Regular)); + } + catch (Exception) // Fallback if the font couldn't be loaded + { + font = ((MainForm)General.Interface).Font; + } distinctcolors = new List<PixelColor> {