mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 20:57:41 +00:00
Merge pull request #6961 from wesnoth/line-height-tweak
Font/Text: tweak line height
This commit is contained in:
commit
3dba9a04d6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user