Allow user to add .ttc font files.
authorCarl Hetherington <cth@carlh.net>
Thu, 23 Dec 2021 02:07:18 +0000 (03:07 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 25 Dec 2021 19:21:15 +0000 (20:21 +0100)
src/wx/fonts_dialog.cc

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