mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05:00
FontEditor: Show code point name in status bar
This commit is contained in:
parent
b06b54772e
commit
b224efe73b
1 changed files with 7 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <LibGfx/FontStyleMapping.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <LibGfx/TextDirection.h>
|
||||
#include <LibUnicode/CharacterTypes.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static constexpr int s_pangram_count = 7;
|
||||
|
@ -704,6 +705,12 @@ void FontEditorWidget::update_statusbar()
|
|||
}
|
||||
|
||||
builder.append(")");
|
||||
|
||||
auto glyph_name = Unicode::code_point_display_name(glyph);
|
||||
if (glyph_name.has_value()) {
|
||||
builder.appendff(" {}", glyph_name.value());
|
||||
}
|
||||
|
||||
if (m_edited_font->raw_glyph_width(glyph) > 0)
|
||||
builder.appendff(" [{}x{}]", m_edited_font->raw_glyph_width(glyph), m_edited_font->glyph_height());
|
||||
m_statusbar->set_text(builder.to_string());
|
||||
|
|
Loading…
Add table
Reference in a new issue