diff --git a/aegisub/src/dialog_style_editor.cpp b/aegisub/src/dialog_style_editor.cpp index 16a2c924e..261f42051 100644 --- a/aegisub/src/dialog_style_editor.cpp +++ b/aegisub/src/dialog_style_editor.cpp @@ -448,30 +448,6 @@ void DialogStyleEditor::UpdateWorkStyle() { work->strikeout = BoxStrikeout->IsChecked(); } -void DialogStyleEditor::OnChooseFont (wxCommandEvent &event) { - wxFont oldfont (int(work->fontsize), wxFONTFAMILY_DEFAULT, (work->italic?wxFONTSTYLE_ITALIC:wxFONTSTYLE_NORMAL), (work->bold?wxFONTWEIGHT_BOLD:wxFONTWEIGHT_NORMAL), work->underline, work->font, wxFONTENCODING_DEFAULT); - wxFont newfont = wxGetFontFromUser(this, oldfont); - if (newfont.Ok()) { - FontName->SetValue(newfont.GetFaceName()); - FontSize->SetValue(wxString::Format("%i", newfont.GetPointSize())); - BoxBold->SetValue(newfont.GetWeight() == wxFONTWEIGHT_BOLD); - BoxItalic->SetValue(newfont.GetStyle() == wxFONTSTYLE_ITALIC); - BoxUnderline->SetValue(newfont.GetUnderlined()); - work->font = newfont.GetFaceName(); - work->fontsize = newfont.GetPointSize(); - work->bold = (newfont.GetWeight() == wxFONTWEIGHT_BOLD); - work->italic = (newfont.GetStyle() == wxFONTSTYLE_ITALIC); - work->underline = newfont.GetUnderlined(); - UpdateWorkStyle(); - if (SubsPreview) SubsPreview->SetStyle(*work); - - // Comic sans warning - if (newfont.GetFaceName() == "Comic Sans MS") { - wxMessageBox(_("You have chosen to use the \"Comic Sans\" font. As the programmer and a typesetter, \nI must urge you to reconsider. Comic Sans is the most abused font in the history\nof computing, so please avoid using it unless it's REALLY suitable. Thanks."), _("Warning"), wxICON_EXCLAMATION | wxOK); - } - } -} - /// @brief Sets color for one of the four color buttons /// @param n Colour to set void DialogStyleEditor::OnSetColor (int n, wxCommandEvent& evt) { diff --git a/aegisub/src/dialog_style_editor.h b/aegisub/src/dialog_style_editor.h index a2bf2edb3..524918d4d 100644 --- a/aegisub/src/dialog_style_editor.h +++ b/aegisub/src/dialog_style_editor.h @@ -145,7 +145,6 @@ class DialogStyleEditor : public wxDialog { int ControlToAlign (int n); void UpdateWorkStyle (); - void OnChooseFont (wxCommandEvent &event); void OnChildFocus (wxChildFocusEvent &event); void OnCommandPreviewUpdate (wxCommandEvent &event);