diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-06-14 11:08:37 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-06-14 11:08:37 +0000 |
| commit | 5712a3995a51c5d10e8a26b07a3756ec1e0344f3 (patch) | |
| tree | 7e113f74b757fa6074fff21fb0536d75b73ca31d /src/ui/widget/font-variants.cpp | |
| parent | Add radio buttons for font style alternates. (diff) | |
| download | inkscape-5712a3995a51c5d10e8a26b07a3756ec1e0344f3.tar.gz inkscape-5712a3995a51c5d10e8a26b07a3756ec1e0344f3.zip | |
Limit style alternatives label width.
Diffstat (limited to 'src/ui/widget/font-variants.cpp')
| -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; |
