mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
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:
parent
96895cd22c
commit
a593b83189
Notes:
sideshowbarker
2024-07-17 19:53:36 +09:00
Author: https://github.com/thankyouverycool
Commit: a593b83189
Pull-request: https://github.com/SerenityOS/serenity/pull/12237
Issue: https://github.com/SerenityOS/serenity/issues/12226
8 changed files with 14 additions and 10 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue