Merge pull request #6961 from wesnoth/line-height-tweak

Font/Text: tweak line height
This commit is contained in:
Charles Dang 2022-08-12 21:57:29 -04:00 committed by GitHub
commit 3dba9a04d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,12 +97,7 @@ pango_text::pango_text()
pango_layout_set_ellipsize(layout_.get(), ellipse_mode_);
pango_layout_set_alignment(layout_.get(), alignment_);
pango_layout_set_wrap(layout_.get(), PANGO_WRAP_WORD_CHAR);
/*
* Set the pango spacing a bit bigger since the default is deemed to small
* https://www.wesnoth.org/forum/viewtopic.php?p=358832#p358832
*/
pango_layout_set_spacing(layout_.get(), 4 * PANGO_SCALE);
pango_layout_set_line_spacing(layout_.get(), 1.3f);
cairo_font_options_t *fo = cairo_font_options_create();
cairo_font_options_set_hint_style(fo, CAIRO_HINT_STYLE_FULL);