help: use heavy font weight for emphasis instead of serif

This commit is contained in:
Subhraman Sarkar 2025-03-07 11:45:24 +05:30
parent 6929ace250
commit 24d3ba375a
2 changed files with 5 additions and 5 deletions

View File

@ -464,10 +464,10 @@ Of these categories, only leaders are built into the basic game rules. The other
title= _ "Time of Day"
text= _ "The time of day affects the damage of certain units as follows:
• <span face='Serif' size='15'>LAWFUL</span> units get +25% damage in daytime, and 25% damage at night.
• <span face='Serif' size='15'>CHAOTIC</span> units get +25% damage at night, and 25% in daytime.
• <span face='Serif' size='15'>NEUTRAL</span> units are unaffected by the time of day.
• <span face='Serif' size='15'>LIMINAL</span> units get +25% damage during twilight." + _ "
• <span weight='heavy' size='15'>LAWFUL</span> units get +25% damage in daytime, and 25% damage at night.
• <span weight='heavy' size='15'>CHAOTIC</span> units get +25% damage at night, and 25% in daytime.
• <span weight='heavy' size='15'>NEUTRAL</span> units are unaffected by the time of day.
• <span weight='heavy' size='15'>LIMINAL</span> units get +25% damage during twilight." + _ "
The current time of day can be observed under the minimap in the status pane. For the usual day/night cycle, morning and afternoon count as day, first and second watch count as night:" +
"

View File

@ -573,7 +573,7 @@ std::pair<config, point> rich_label::get_parsed_text(
} else if(key == "header" || key == "h") {
const auto [start, end] = add_text(*curr_item, line);
add_attribute(*curr_item, "face", start, end, "serif");
add_attribute(*curr_item, "weight", start, end, "heavy");
add_attribute(*curr_item, "color", start, end, font::string_to_color("white").to_hex_string());
add_attribute(*curr_item, "size", start, end, std::to_string(font::SIZE_TITLE - 2));