Allow loading of OTF files.
authorCarl Hetherington <cth@carlh.net>
Fri, 1 Feb 2019 23:45:11 +0000 (23:45 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 1 Feb 2019 23:45:11 +0000 (23:45 +0000)
src/wx/fonts_dialog.cc

index 4ad118262367bd7f5e25d8ad52dccf2befce6e7c..88fcb2dce5de2f65d9d7a9d2d7c05380bf921aed 100644 (file)
@@ -155,7 +155,7 @@ FontsDialog::edit_clicked ()
         default_dir = "/System/Library/Fonts";
 #endif
 
-       wxFileDialog* d = new wxFileDialog (this, _("Choose a font file"), default_dir, wxT (""), wxT ("*.ttf"), wxFD_CHANGE_DIR);
+       wxFileDialog* d = new wxFileDialog (this, _("Choose a font file"), default_dir, wxT(""), wxT("*.ttf;*.otf"), wxFD_CHANGE_DIR);
        int const r = d->ShowModal ();
 
        if (r != wxID_OK) {