mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
HexEditor: Use glyph_fixed_width() for character width
This commit is contained in:
parent
d3012f2df1
commit
0fdbdc5084
Notes:
sideshowbarker
2024-07-17 08:43:11 +09:00
Author: https://github.com/AtkinsSJ
Commit: 0fdbdc5084
Pull-request: https://github.com/SerenityOS/serenity/pull/23083
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ private:
|
||||||
|
|
||||||
size_t total_rows() const { return ceil_div(m_content_length, m_bytes_per_row); }
|
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 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 cell_width() const { return character_width() * 3; }
|
||||||
size_t offset_margin_width() const { return 80; }
|
size_t offset_margin_width() const { return 80; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue