diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-20 19:28:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-20 19:28:03 +0100 |
| commit | b1387d5e333ec56bfd39c9e1cd92279ca244688d (patch) | |
| tree | d73338b91e5d98bdc40ab183c02c0a3470f2e2cc /src | |
| parent | 76a85334b95212f095dcc08086dcb3e52d4dd127 (diff) | |
Fix missing code to display italic / bold font names.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/fonts_dialog.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/fonts_dialog.cc b/src/wx/fonts_dialog.cc index 9c0329914..5c89372df 100644 --- a/src/wx/fonts_dialog.cc +++ b/src/wx/fonts_dialog.cc @@ -110,8 +110,10 @@ FontsDialog::setup () item.SetId (n); _fonts->InsertItem (item); _fonts->SetItem (n, 0, std_to_wx (i->id ())); - if (i->file(FontFiles::NORMAL)) { - _fonts->SetItem (n, 1, i->file(FontFiles::NORMAL).get().leaf().string ()); + for (int j = 0; j < FontFiles::VARIANTS; ++j) { + if (i->file(static_cast<FontFiles::Variant>(j))) { + _fonts->SetItem (n, j + 1, i->file(static_cast<FontFiles::Variant>(j)).get().leaf().string ()); + } } ++n; } |
