summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-18 23:39:54 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-20 00:31:55 +0100
commitb224efe73bf2a47330163368afb90931280ef0b9 (patch)
tree8daddf2d79650ab3a4da902934da0c310fbd4224
parentb06b54772e0cfc3009c5f1b1c86eec7bef066fa1 (diff)
downloadserenity-b224efe73bf2a47330163368afb90931280ef0b9.zip
FontEditor: Show code point name in status bar
-rw-r--r--Userland/Applications/FontEditor/FontEditor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Applications/FontEditor/FontEditor.cpp b/Userland/Applications/FontEditor/FontEditor.cpp
index 9f159ba152..acd3b0af44 100644
--- a/Userland/Applications/FontEditor/FontEditor.cpp
+++ b/Userland/Applications/FontEditor/FontEditor.cpp
@@ -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());