LibGfx+Applications: Add human readable name helper for fonts

This returns a more comprehensible name than raw weight and slope
metrics and is intended for use in UIs. Now displays human readable
font names in FontSettings, TerminalSettings and CharacterMap.
This commit is contained in:
thankyouverycool 2022-01-31 20:54:27 -05:00 committed by Andreas Kling
commit a593b83189
Notes: sideshowbarker 2024-07-17 19:53:36 +09:00
8 changed files with 14 additions and 10 deletions

View file

@ -144,7 +144,7 @@ void CharacterMapWidget::initialize_menubar(GUI::Window& window)
void CharacterMapWidget::did_change_font()
{
m_glyph_map->set_font(font());
m_font_name_label->set_text(font().qualified_name());
m_font_name_label->set_text(font().human_readable_name());
m_output_box->set_font(font());
}