From 0fdbdc508435010b13a4eebb555ef137c9d859a3 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 5 Feb 2024 12:23:02 +0000 Subject: [PATCH] HexEditor: Use glyph_fixed_width() for character width --- Userland/Applications/HexEditor/HexEditor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/HexEditor/HexEditor.h b/Userland/Applications/HexEditor/HexEditor.h index 396157a97f..2d9363f7d2 100644 --- a/Userland/Applications/HexEditor/HexEditor.h +++ b/Userland/Applications/HexEditor/HexEditor.h @@ -108,7 +108,7 @@ private: size_t total_rows() const { return ceil_div(m_content_length, m_bytes_per_row); } size_t line_height() const { return font().pixel_size_rounded_up() + m_line_spacing; } - size_t character_width() const { return font().glyph_width('W'); } + size_t character_width() const { return font().glyph_fixed_width(); } size_t cell_width() const { return character_width() * 3; } size_t offset_margin_width() const { return 80; }