diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/widget/font-variants.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/widget/font-variants.cpp b/src/ui/widget/font-variants.cpp index 6322970e5..144df39c3 100644 --- a/src/ui/widget/font-variants.cpp +++ b/src/ui/widget/font-variants.cpp @@ -55,6 +55,13 @@ namespace Widget { buttons.push_back (button); Gtk::Label* label = Gtk::manage (new Gtk::Label()); + + // Restrict label width (some fonts have lots of alternatives). + label->set_line_wrap( true ); + label->set_line_wrap_mode( Pango::WRAP_WORD_CHAR ); + label->set_ellipsize( Pango::ELLIPSIZE_END ); + label->set_lines(2); + Glib::ustring markup; markup += "<span font_family='"; markup += family; |
