help: Readjust heading font measurement and line spacing

Fixes tiny help topic body subheadings and tiny line spacing.
This commit is contained in:
Iris Morelle 2021-03-19 12:38:00 -03:00
parent c10e9fbd95
commit f33c087770
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ boost::tribool last_debug_state = boost::indeterminate;
std::vector<std::string> empty_string_vector;
const int max_section_level = 15;
const int title_size = font::SIZE_LARGE;
const int title2_size = font::SIZE_15;
const int title2_size = font::SIZE_PLUS;
const int box_width = 2;
const int normal_font_size = font::SIZE_NORMAL;
const unsigned max_history = 100;

View file

@ -48,7 +48,7 @@ help_text_area::help_text_area(CVideo &video, const section &toplevel) :
shown_topic_(nullptr),
title_spacing_(16),
curr_loc_(0, 0),
min_row_height_(font::get_max_height(normal_font_size)),
min_row_height_(4 + font::get_max_height(normal_font_size)),
curr_row_height_(min_row_height_),
contents_height_(0)
{