Increase the lineheight in the new dialogs.

The default space was deemed to be a little bit too small.
http://www.wesnoth.org/forum/viewtopic.php?p=358832#p358832
This commit is contained in:
Mark de Wever 2009-05-31 19:49:11 +00:00
parent b6d39b9f58
commit 1270c64e05
3 changed files with 8 additions and 0 deletions

View file

@ -11,6 +11,7 @@ Version 1.7.0+svn:
situation worse
* Add a new transient message dialog
* Add a new multi page widget
* Increase the lineheight in the new dialogs
* WML Engine:
* Made new turn, turn X, side turn and turn refresh events synchronous.
(bug #10603)

View file

@ -13,6 +13,7 @@ Version 1.7.0+svn:
* User interface
* Improved the layout to take less space in certain cases.
* Increase the lineheight in the new dialogs.
* Miscellaneous and bugfixes
* Fixed a crash in some storyscreens.

View file

@ -81,6 +81,12 @@ ttext::ttext() :
pango_layout_set_ellipsize(layout_, ellipse_mode_);
/*
* Set the pango spacing a bit bigger since the default is deemed to small
* http://www.wesnoth.org/forum/viewtopic.php?p=358832#p358832
*/
pango_layout_set_spacing(layout_, 2 * PANGO_SCALE);
cairo_font_options_t *fo = cairo_font_options_create();
cairo_font_options_set_hint_style(fo, CAIRO_HINT_STYLE_FULL);
cairo_font_options_set_hint_metrics(fo, CAIRO_HINT_METRICS_ON);