ArtOfWords.Views.Main.MainWindowView.SetDefaultFont C# (CSharp) Method

SetDefaultFont() private method

private SetDefaultFont ( ) : void
return void
        private void SetDefaultFont()
        {
            var font = App.Current.FindResource("CommonFontFamily") as FontFamily;
            var selectiveFont = Properties.Settings.Default["TextBoxFontFamily"] as FontFamily;

            if (DoesFontExist(selectiveFont))
            {
                font = selectiveFont;
            }
            else
            {
                font = new FontFamily("MS Gothic");
                Properties.Settings.Default["TextBoxFontFamily"] = font;
            }
        }